diff --git a/please b/please index eb1e253..0c973db 100644 --- a/please +++ b/please @@ -160,12 +160,6 @@ publish-npm() ok } -REPO=`git config --get remote.origin.url | sed -e 's/git@github.com://;s/.git//'` -if [ "" == "$REPO" ]; then - error "$(pwd) is not git repo" - exit 1 -fi - GCFMT="%s (%an)" # git commit log format # argv parsing @@ -186,6 +180,12 @@ do esac done +REPO=`git config --get remote.origin.url | sed -e 's/git@github.com://;s/.git//'` +if [ "" == "$REPO" ]; then + error "$(pwd) is not git repo" + exit 1 +fi + GPUSH=0 # git push pending MAJOR=${MAJOR:-0} # bump major MINOR=${MINOR:-0} # bump minor