From a5872a1580e7d3c9d2104d45fc74d8c1ab001f1e Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih@debian.org>
Date: Thu, 13 Feb 2014 23:32:31 +0100
Subject: [PATCH] vcsh: Fix up the rest of the (relevant) git calls
---
vcsh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/vcsh b/vcsh
index b78235b..068c618 100755
--- a/vcsh
+++ b/vcsh
@@ -175,6 +175,7 @@ commit() {
export GIT_DIR="$VCSH_REPO_D/$VCSH_REPO_NAME.git"
use
git commit --untracked-files=no --quiet
+ VCSH_COMMAND_RETURN_CODE=$?
echo
done
hook post-commit
@@ -270,6 +271,7 @@ push() {
export GIT_DIR="$VCSH_REPO_D/$VCSH_REPO_NAME.git"
use
git push
+ VCSH_COMMAND_RETURN_CODE=$?
echo
done
hook post-push
@@ -305,12 +307,14 @@ status() {
export GIT_DIR="$VCSH_REPO_D/$VCSH_REPO_NAME.git"
use
git status --short --untracked-files='no'
+ VCSH_COMMAND_RETURN_CODE=$?
else
for VCSH_REPO_NAME in $(list); do
echo "$VCSH_REPO_NAME:"
export GIT_DIR="$VCSH_REPO_D/$VCSH_REPO_NAME.git"
use
git status --short --untracked-files='no'
+ VCSH_COMMAND_RETURN_CODE=$?
echo
done
fi
--
GitLab