summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73a2acc)
raw | patch | inline | side by side (parent: 73a2acc)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 31 Jan 2007 05:03:11 +0000 (21:03 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 31 Jan 2007 05:03:11 +0000 (21:03 -0800) |
... which I broke when we introduced user.signingkey configuration.
There was no reason to add a new variable keyid to the script.
Signed-off-by: Junio C Hamano <junkio@cox.net>
There was no reason to add a new variable keyid to the script.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-tag.sh | patch | blob | history |
diff --git a/git-tag.sh b/git-tag.sh
index 988bf4c6a6b52af4d4a1b792090c317b9d799755..4a0a7b660780b7c377ce80ac49dc99cea3e8137d 100755 (executable)
--- a/git-tag.sh
+++ b/git-tag.sh
type=$(git-cat-file -t $object) || exit 1
tagger=$(git-var GIT_COMMITTER_IDENT) || exit 1
-keyid=$(git-repo-config user.signingkey) ||
- keyid=$(expr "z$tagger" : 'z\(.*>\)')
+test -n "$username" ||
+ username=$(git-repo-config user.signingkey) ||
+ username=$(expr "z$tagger" : 'z\(.*>\)')
trap 'rm -f "$GIT_DIR"/TAG_TMP* "$GIT_DIR"/TAG_FINALMSG "$GIT_DIR"/TAG_EDITMSG' 0
cat "$GIT_DIR"/TAG_FINALMSG ) >"$GIT_DIR"/TAG_TMP
rm -f "$GIT_DIR"/TAG_TMP.asc "$GIT_DIR"/TAG_FINALMSG
if [ "$signed" ]; then
- gpg -bsa -u "$keyid" "$GIT_DIR"/TAG_TMP &&
+ gpg -bsa -u "$username" "$GIT_DIR"/TAG_TMP &&
cat "$GIT_DIR"/TAG_TMP.asc >>"$GIT_DIR"/TAG_TMP ||
die "failed to sign the tag with GPG."
fi