summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-22 01:59:16 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-22 13:45:44 +0100
commit61ab8270575d967a14485408674aaf01c2c2de06 (patch)
tree876e85688e558c2e72f562f6e0ec11ed7b4d9cfc
parent69323e5f402c84897eaeea7a28cdae1b3da10066 (diff)
git-debpush: use -m rather than -F- <<EOF
This means that a run with set -x shows the tag data that is being signed. The user can even then try it again. It will make it easier to do some kind of dry run, too, if we want to. We are really not in danger of hitting a command line length limit. (It also involves fewer syscalls, less use of /tmp etc., although that is really irrelevant here.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xgit-debpush7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-debpush b/git-debpush
index 5b99e72..744212a 100755
--- a/git-debpush
+++ b/git-debpush
@@ -393,12 +393,13 @@ if [ "$format" = "3.0 (quilt)" ]; then
fi
fi
-git tag "${git_tag_opts[@]}" -s -F- "$debian_tag" "$branch" <<EOF
-$source release $version for $target
+tagmessage="$source release $version for $target
[dgit distro=$distro split$quilt_mode_text]
[dgit please-upload$upstream_info]
-EOF
+"
+
+git tag "${git_tag_opts[@]}" -s -m "$tagmessage" "$debian_tag" "$branch"
# **** Do a git push ****