diff options
Diffstat (limited to 'builtin-tag.c')
-rw-r--r-- | builtin-tag.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/builtin-tag.c b/builtin-tag.c index 95ecfdb..129ff57 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -230,19 +230,17 @@ static int do_sign(struct strbuf *buffer) if (write_in_full(gpg.in, buffer->buf, buffer->len) != buffer->len) { close(gpg.in); + close(gpg.out); finish_command(&gpg); return error("gpg did not accept the tag data"); } close(gpg.in); - gpg.close_in = 0; len = strbuf_read(buffer, gpg.out, 1024); + close(gpg.out); 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; } |