From caa1e709a82e10200b3e1cc310a4a40d2212cbc2 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 17 Jul 2019 08:55:50 +0100 Subject: [PATCH] git-debpush: cope with spaces in user-supplied upstream tag Signed-off-by: Sean Whitton --- git-debpush | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.30.2