From: Sean Whitton Date: Wed, 17 Jul 2019 07:55:50 +0000 (+0100) Subject: git-debpush: cope with spaces in user-supplied upstream tag X-Git-Tag: archive/debian/9.3~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=caa1e709a82e10200b3e1cc310a4a40d2212cbc2;hp=ac981dd92158727ad37f82d4b609c498539b848a;p=dgit.git git-debpush: cope with spaces in user-supplied upstream tag Signed-off-by: Sean Whitton --- diff --git a/git-debpush b/git-debpush index 03fc9ce7..1902fa93 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