summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2010-04-20 01:31:25 +0200
committerJunio C Hamano <gitster@pobox.com>2010-04-19 16:34:49 -0700
commit944163a4bd4cc4c35392147d10020ba57c6d7d87 (patch)
treeaa3627e5ff2a069cc89588c8d7f07d159ff04404 /remote.c
parent5469e2dab133a197dc2ca2fa47eb9e846ac19b66 (diff)
downloadgit-944163a4bd4cc4c35392147d10020ba57c6d7d87.tar.gz
Honor "tagopt = --tags" configuration option
If the "tagopt = --tags" option of a remote is set, all tags will be fetched as in "git fetch --tags". Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.c b/remote.c
index c70181cdc6..0f073e0b5f 100644
--- a/remote.c
+++ b/remote.c
@@ -443,6 +443,8 @@ static int handle_config(const char *key, const char *value, void *cb)
} else if (!strcmp(subkey, ".tagopt")) {
if (!strcmp(value, "--no-tags"))
remote->fetch_tags = -1;
+ else if (!strcmp(value, "--tags"))
+ remote->fetch_tags = 2;
} else if (!strcmp(subkey, ".proxy")) {
return git_config_string((const char **)&remote->http_proxy,
key, value);