Skip to content

Commit a6ccbbd

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3e8c0eb commit a6ccbbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/tag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ static int delete_tag(const char *name, const char *ref,
147147
static int verify_tag(const char *name, const char *ref,
148148
const unsigned char *sha1)
149149
{
150-
const char *argv_verify_tag[] = {"git-verify-tag",
150+
const char *argv_verify_tag[] = {"verify-tag",
151151
"-v", "SHA1_HEX", NULL};
152152
argv_verify_tag[2] = sha1_to_hex(sha1);
153153

154-
if (run_command_v_opt(argv_verify_tag, 0))
154+
if (run_command_v_opt(argv_verify_tag, RUN_GIT_CMD))
155155
return error("could not verify the tag '%s'", name);
156156
return 0;
157157
}

0 commit comments

Comments
 (0)