log: teach "terminator" vs "separator" mode to "--pretty=format"
[gitweb.git] / builtin-verify-tag.c
index b3010f9827a9df6c3113fc0b90a8fbde4cf18bb7..db81496b464e253341a42e01eb72d6845e87199c 100644 (file)
@@ -45,10 +45,11 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
        memset(&gpg, 0, sizeof(gpg));
        gpg.argv = args_gpg;
        gpg.in = -1;
-       gpg.out = 1;
        args_gpg[2] = path;
-       if (start_command(&gpg))
+       if (start_command(&gpg)) {
+               unlink(path);
                return error("could not run gpg.");
+       }
 
        write_in_full(gpg.in, buf, len);
        close(gpg.in);