summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 828ea97)
raw | patch | inline | side by side (parent: 828ea97)
author | Alex Zepeda <alex@inferiorhumanorgans.com> | |
Thu, 8 Mar 2012 20:07:20 +0000 (12:07 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Mar 2012 22:03:07 +0000 (14:03 -0800) |
Modify verify-tag to load relevant GPG variables from the git
configuratio file. This allows git tag -v to use an alternative
GPG binary in the same way that git tag -s does.
Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configuratio file. This allows git tag -v to use an alternative
GPG binary in the same way that git tag -s does.
Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/verify-tag.c | patch | blob | history |
diff --git a/builtin/verify-tag.c b/builtin/verify-tag.c
index 28c21743381db95f6ddb4b185ec34cdbff686866..986789f706911d122e24b0d784ab193e2ec3b74b 100644 (file)
--- a/builtin/verify-tag.c
+++ b/builtin/verify-tag.c
return ret;
}
+static int git_verify_tag_config(const char *var, const char *value, void *cb)
+{
+ int status = git_gpg_config(var, value, cb);
+ if (status)
+ return status;
+ return git_default_config(var, value, cb);
+}
+
int cmd_verify_tag(int argc, const char **argv, const char *prefix)
{
int i = 1, verbose = 0, had_error = 0;
OPT_END()
};
- git_config(git_default_config, NULL);
+ git_config(git_verify_tag_config, NULL);
argc = parse_options(argc, argv, prefix, verify_tag_options,
verify_tag_usage, PARSE_OPT_KEEP_ARGV0);