summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-09-15 08:55:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-09-15 08:55:07 +0200
commit104832ec2775551e8962af238e36486bccbc5851 (patch)
tree61e8dbf5d69a5f11c0b9f8b2c4d3b0cebd7a4182
parent2a60eb26aba44f61d73800057f2d9b2e3cc643a7 (diff)
downloadbin-104832ec2775551e8962af238e36486bccbc5851.zip
bin-104832ec2775551e8962af238e36486bccbc5851.tar.gz
git-synk: as gitolite does not handle args as --quiet, do it myself, add leave comment
-rwxr-xr-xgit-synk6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-synk b/git-synk
index 487f054..7460fc4 100755
--- a/git-synk
+++ b/git-synk
@@ -54,7 +54,7 @@ for gitdir in ${GIT_DIR}; do
STASH=1
echo -e "${RED}head is not clean, ${CYAN}git stash save${RESET}" && git stash save -q
else
- echo -e "${RED}head is not clean, USE_STASH=0 ... ${CYAN}leave${RESET}" && cd .. && continue
+ echo -e "${RED}head is not clean, USE_STASH=0 ... ${CYAN}leave${RESET}\n" && cd .. && continue
fi
fi
# PULL
@@ -68,7 +68,7 @@ for gitdir in ${GIT_DIR}; do
# PUSH
if [ "$action" != "pull" ] ; then
echo -ne " ${CYAN}push${RESET}: ${YELLOW}${GIT_REMOTE}${RESET}:${PURPLE}${GIT_BRANCH}${RESET} ... " && \
- git push ${GIT_REMOTE} ${GIT_BRANCH} && echo -e "${GREEN}OK${RESET}"
+ git push ${GIT_REMOTE} ${GIT_BRANCH} 2>/dev/null && echo -e "${GREEN}OK${RESET}"
if [ $? -ne 0 ]; then
echo -e "${RED}KO${RESET}" && cd .. && continue
fi
@@ -76,7 +76,7 @@ for gitdir in ${GIT_DIR}; do
if [ $STASH -eq 1 ]; then
echo -e " ${RED}was not clean, ${CYAN}git stash pop${RESET}" && git stash pop -q
fi
- cd ..
+ echo -e " leave ${BROWN}${dir}${RESET}\n" && cd .. || exit 1
done
echo -e "leave ${BROWN}${gitdir}${RESET}"
done