summaryrefslogtreecommitdiffstats
path: root/git-synk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-07-04 09:37:20 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-07-04 09:37:20 +0200
commitb28dab49bd8df92aecf3eb458a94f8e8989b18e0 (patch)
tree9ce58bcd815a0ae314e063e796fbf9c065f280d0 /git-synk
parent409b66964261460909e68a715b839d205d931610 (diff)
downloadbin-b28dab49bd8df92aecf3eb458a94f8e8989b18e0.zip
bin-b28dab49bd8df92aecf3eb458a94f8e8989b18e0.tar.gz
git-synk: add arguments
Diffstat (limited to 'git-synk')
-rwxr-xr-xgit-synk5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-synk b/git-synk
index e17b076..2a522c8 100755
--- a/git-synk
+++ b/git-synk
@@ -1,7 +1,10 @@
#! /bin/sh
+if [ $# -gt 0 ]; then GIT_REMOTE=$1; shift; fi
+if [ $# -gt 0 ]; then GIT_BRANCH=$1; shift; fi
+
GIT_BASE=${GIT_BASE:-$HOME/usr/git}
-GIT_REMOTE=${GIT_REMOTE:-asynk}
+GIT_REMOTE=${GIT_REMOTE:-origin}
GIT_BRANCH=${GIT_BRANCH:-master}
RESET="\033[0m"