From 4d12f1be34524df88cff8f7728a581e05c1536f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 31 Aug 2012 12:54:59 +0200 Subject: git-synk: do not push to origin --- git-synk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-synk b/git-synk index 9f92b91..f7cf2fe 100755 --- a/git-synk +++ b/git-synk @@ -87,7 +87,7 @@ for gitdir in ${GIT_DIR}; do fi fi # PUSH - if [ "$action" != "pull" ] ; then + if [ "${GIT_REMOTE}" != "origin" -a "$action" != "pull" ] ; then echo -ne " ${CYAN}push${RESET}: ${YELLOW}${GIT_REMOTE}${RESET}:${PURPLE}${GIT_BRANCH}${RESET} ... " && \ git push ${GIT_REMOTE} ${GIT_BRANCH} 2>/dev/null && success if [ $? -ne 0 ]; then -- cgit v1.1-2-g2b99