X-Git-Url: https://oss.titaniummirror.com/gitweb?p=git-utils.git;a=blobdiff_plain;f=git-publish-branch;h=9026e0072759eb39d0abfd374675dddd3e4257ae;hp=fb38886c16154a11cbd52297fd46602266a89412;hb=fdc47d838cc182bec93f1b49f3a5d7f6a88a8cc0;hpb=859fd7052a97cd107a8c822503f7585cf5edf981 diff --git a/git-publish-branch b/git-publish-branch index fb38886..9026e00 100755 --- a/git-publish-branch +++ b/git-publish-branch @@ -1,5 +1,5 @@ #!/bin/sh -# git-publish-branch [-d] [repository] +# git-publish-branch [-d] [branch] [repository] unset delete if [ "$1" = "-d" ]; then @@ -13,11 +13,11 @@ unset remote if [ $# -eq 1 ]; then branch=$1 elif [ $# -eq 2 ]; then - remote=$1 - branch=$2 + branch=$1 + remote=$2 elif [ $# -gt 2 ]; then - echo "Usage: $0 [] " >&2 - exit 127 + echo "Usage: $0 [branch] [repository]" >&2 + exit 1 fi if [ -z "$branch" ]; then