]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Another minor-fix in make-git.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Jun 2008 17:02:42 +0000 (19:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Jun 2008 17:02:42 +0000 (19:02 +0200)
tools/make-git

index 1089062da3b917ed60eb1c9e1d42669b43124b67..f77ec1b09ef35fd353cda1602701853c789817d6 100644 (file)
 #
 ###############################################################################
 
-[ -z $GIT_USER ] && exiterror "You have to setup GIT_USER first."
-
-GIT_URL="ssh://${GIT_USER}@git.ipfire.org/pub/git/ipfire-3.x"
-
 if [ -z $EDITOR ]; then
        for i in nano emacs vi; do
                EDITOR=$(which $i 2>/dev/null)
@@ -81,6 +77,10 @@ git_pull() {
 }
 
 git_push() {
+       [ -z $GIT_USER ] && exiterror "You have to setup GIT_USER first."
+
+       GIT_URL="ssh://${GIT_USER}@git.ipfire.org/pub/git/ipfire-3.x"
+
        [ "$CURRENT_BRANCH" == "master" ] || \
                exiterror "You have to be in branch \"master\", if you want to push."
        git push ${GIT_URL} master