summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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