git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] "git-tag -s" should create a signed annotated tag
@ 2007-11-25 23:21 Junio C Hamano
  2007-11-26  4:50 ` Jeff King
  2007-11-26  4:51 ` Carlos Rica
  0 siblings, 2 replies; 3+ messages in thread
From: Junio C Hamano @ 2007-11-25 23:21 UTC (permalink / raw)
  To: git; +Cc: Carlos Rica

The earlier patch 396865859918e9c7bf8ce74aae137c57da134610 (Make
builtin-tag.c use parse_options.) broke "git-tag -s".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---

 * It's _very_ disturbing that the testsuite did not catch this
   breakage, even though I though we had a very detailed coverage for
   "git tag" when it was rewritten in C.

 builtin-tag.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/builtin-tag.c b/builtin-tag.c
index 3a6467d..114c684 100644
--- a/builtin-tag.c
+++ b/builtin-tag.c
@@ -398,6 +398,9 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
 
 	argc = parse_options(argc, argv, options, git_tag_usage, 0);
 
+	if (sign)
+		annotate = 1;
+
 	if (list)
 		return list_tags(list == no_pattern ? NULL : list, lines);
 	if (delete)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-26  4:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-25 23:21 [PATCH] "git-tag -s" should create a signed annotated tag Junio C Hamano
2007-11-26  4:50 ` Jeff King
2007-11-26  4:51 ` Carlos Rica

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).