From: Michael Tremer Date: Tue, 17 Jun 2008 17:02:42 +0000 (+0200) Subject: Another minor-fix in make-git. X-Git-Tag: v3.0-alpha1~949 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcca4820d19cbe5b0fa443af2053327f2cb35a02;p=ipfire-3.x.git Another minor-fix in make-git. --- diff --git a/tools/make-git b/tools/make-git index 1089062da..f77ec1b09 100644 --- a/tools/make-git +++ b/tools/make-git @@ -26,10 +26,6 @@ # ############################################################################### -[ -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