summaryrefslogtreecommitdiffstats
path: root/git-synk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-08-31 12:54:59 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-08-31 12:54:59 +0200
commit4d12f1be34524df88cff8f7728a581e05c1536f9 (patch)
tree3d984edd34c0dbab8cec35536e12a48a2c00665e /git-synk
parente687343f1e3f1b7fa2fbbe7707b04328b2cd4162 (diff)
downloadbin-4d12f1be34524df88cff8f7728a581e05c1536f9.zip
bin-4d12f1be34524df88cff8f7728a581e05c1536f9.tar.gz
git-synk: do not push to origin
Diffstat (limited to 'git-synk')
-rwxr-xr-xgit-synk2
1 files changed, 1 insertions, 1 deletions
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