summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1a41b9)
raw | patch | inline | side by side (parent: c1a41b9)
author | Jeff King <peff@peff.net> | |
Mon, 26 Nov 2007 04:50:58 +0000 (23:50 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 Nov 2007 05:23:28 +0000 (21:23 -0800) |
This detects a regression introduced while moving git-tag to a C
builtin.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh | patch | blob | history |
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
index 736f22e4a942938ee4402f82fa5abc6b5e49f562..c7130c4dcc31dda1f70160c81804096676943af4 100755 (executable)
--- a/t/t7004-tag.sh
+++ b/t/t7004-tag.sh
git diff expect actual
'
+cat >fakeeditor <<'EOF'
+#!/bin/sh
+test -n "$1" && exec >"$1"
+echo A signed tag message
+echo from a fake editor.
+EOF
+chmod +x fakeeditor
+get_tag_header implied-annotate $commit commit $time >expect
+./fakeeditor >>expect
+echo '-----BEGIN PGP SIGNATURE-----' >>expect
+test_expect_success '-s implies annotated tag' '
+ GIT_EDITOR=./fakeeditor git-tag -s implied-annotate &&
+ get_tag_msg implied-annotate >actual &&
+ git diff expect actual
+'
+
test_expect_success \
'trying to create a signed tag with non-existing -F file should fail' '
! test -f nonexistingfile &&