aboutsummaryrefslogtreecommitdiff
path: root/builtin-tag.c
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2008-02-22 09:53:09 +0000
committerJunio C Hamano <gitster@pobox.com>2008-02-22 07:02:40 -0800
commitfd74cb0874126876227a958f6250323a4a4478a5 (patch)
treefd89ccce983470b6e69aed00f6df0cfeb9096eaa /builtin-tag.c
parentc7fae5fc68974eec9b60750424946a67cc143ad2 (diff)
downloadgit-fd74cb0874126876227a958f6250323a4a4478a5.tar.gz
git-fd74cb0874126876227a958f6250323a4a4478a5.tar.xz
builtin-tag.c: remove cruft
After changing builtin-tag.c to use strbuf in fd17f5b (Replace all read_fd use with strbuf_read, and get rid of it.), the last condition in do_sign() will always be false, as it's checked already right above. So let's remove the cruft. Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-tag.c')
-rw-r--r--builtin-tag.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin-tag.c b/builtin-tag.c
index 4a4a88c10..716b4fff3 100644
--- a/builtin-tag.c
+++ b/builtin-tag.c
@@ -236,9 +236,6 @@ static int do_sign(struct strbuf *buffer)
if (finish_command(&gpg) || !len || len < 0)
return error("gpg failed to sign the tag");
- if (len < 0)
- return error("could not read the entire signature from gpg.");
-
return 0;
}