summaryrefslogtreecommitdiff
path: root/builtin/tag.c
diff options
context:
space:
mode:
authorSantiago Torres <santiago@nyu.edu>2016-04-22 14:52:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-22 21:06:46 (GMT)
commitbef234b09e5c3b2f63429fb49aff983f6f617f22 (patch)
tree1cab460250434832500881c7102002462bfdbfa0 /builtin/tag.c
parent45a227ef769df9fc0d198f323d2f919aa74375e1 (diff)
downloadgit-bef234b09e5c3b2f63429fb49aff983f6f617f22.zip
git-bef234b09e5c3b2f63429fb49aff983f6f617f22.tar.gz
git-bef234b09e5c3b2f63429fb49aff983f6f617f22.tar.bz2
tag -v: verify directly rather than exec-ing verify-tag
Instead of having tag -v fork to run verify-tag, use the gpg_verify_tag() function directly. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Santiago Torres <santiago@nyu.edu> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/tag.c')
-rw-r--r--builtin/tag.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index 1705c94..7b2918e 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -104,13 +104,7 @@ static int delete_tag(const char *name, const char *ref,
static int verify_tag(const char *name, const char *ref,
const unsigned char *sha1)
{
- const char *argv_verify_tag[] = {"verify-tag",
- "-v", "SHA1_HEX", NULL};
- argv_verify_tag[2] = sha1_to_hex(sha1);
-
- if (run_command_v_opt(argv_verify_tag, RUN_GIT_CMD))
- return error(_("could not verify the tag '%s'"), name);
- return 0;
+ return gpg_verify_tag(sha1, name, GPG_VERIFY_VERBOSE);
}
static int do_sign(struct strbuf *buffer)