diff options
-rwxr-xr-x | git-debpush | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/git-debpush b/git-debpush index 03fc9ce..1902fa9 100755 --- a/git-debpush +++ b/git-debpush @@ -323,6 +323,9 @@ EOF # ---- Do a git push if $pushing; then - # xxx when user can specify upstream_tag, must cope with spaces - git push "$remote" "${push_branch[@]}" $upstream_tag "$debian_tag" + if [ "x$upstream_tag" = "x" ]; then + git push "$remote" "${push_branch[@]}" "$debian_tag" + else + git push "$remote" "${push_branch[@]}" "$debian_tag" "$upstream_tag" + fi fi |