diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-15 08:55:07 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-15 08:55:07 +0200 |
commit | 104832ec2775551e8962af238e36486bccbc5851 (patch) | |
tree | 61e8dbf5d69a5f11c0b9f8b2c4d3b0cebd7a4182 /git-synk | |
parent | 2a60eb26aba44f61d73800057f2d9b2e3cc643a7 (diff) | |
download | bin-104832ec2775551e8962af238e36486bccbc5851.zip bin-104832ec2775551e8962af238e36486bccbc5851.tar.gz |
git-synk: as gitolite does not handle args as --quiet, do it myself, add leave comment
Diffstat (limited to 'git-synk')
-rwxr-xr-x | git-synk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |