@matheusbsbs / matheus-bagliano / commits / a6ccbbdb66
Fork 0

tag -v: use RUN_GIT_CMD to run verify-tag

This is the preferred way to run a git command. The only obvious observable effects I can think of are that the exec is properly reported in GIT_TRACE output and that verifying signed tags will still work if the git-verify-tag hard link in gitexecdir goes missing. Helped-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Apr 15, 2010 at 04:36 UTC a6ccbbdb66be4e4b90bd54fc644d6366491996b5
1 file changed +2 -2
builtin/tag.c
+2 -2
@@ -147,11 +147,11 @@ static int delete_tag(const char *name, const char *ref,
147 static int verify_tag(const char *name, const char *ref,
148 const unsigned char *sha1)
149 {
150 - const char *argv_verify_tag[] = {"git-verify-tag",
150 + const char *argv_verify_tag[] = {"verify-tag",
151 "-v", "SHA1_HEX", NULL};
152 argv_verify_tag[2] = sha1_to_hex(sha1);
153
154 - if (run_command_v_opt(argv_verify_tag, 0))
154 + if (run_command_v_opt(argv_verify_tag, RUN_GIT_CMD))
155 return error("could not verify the tag '%s'", name);
156 return 0;
157 }