X-Git-Url: https://oss.titaniummirror.com/gitweb?p=git-utils.git;a=blobdiff_plain;f=git-publish-branch;h=4986c363d9c5d3f02d61c1714e560c0acba7088b;hp=9026e0072759eb39d0abfd374675dddd3e4257ae;hb=10fb90c36b245c1f0e876f16c9cd2d838e9be1b5;hpb=fdc47d838cc182bec93f1b49f3a5d7f6a88a8cc0 diff --git a/git-publish-branch b/git-publish-branch index 9026e00..4986c36 100755 --- a/git-publish-branch +++ b/git-publish-branch @@ -49,14 +49,14 @@ if [ $delete ]; then fi else if [ -z "$local_ref" ]; then - echo "$0: no local branch $branch" >&2 - exit 127 + echo "no local branch $branch" >&2 + exit 1 elif [ -n "$remote_ref" ]; then - echo "$0: $remote already has branch $branch" >&2 - exit 127 + echo "$remote already has branch $branch" >&2 + exit 1 elif [ -n "$remote_config" ]; then - echo "$0: local branch $branch is already a tracking branch" >&2 - exit 127 + echo "local branch $branch is already a tracking branch" >&2 + exit 1 fi git push "$remote" "$branch:refs/heads/$branch"