X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=remote.c;h=ea2323bac36d6fd0dbf86870a13774cddd320448;hb=95e42a64a9e713bcc3c4590fb933c93d37342322;hp=c70181cdc621b27ed02aba17b3e4f7ab64518e9f;hpb=ca5812d2e3c72b09008422975740aff41a2c65a0;p=git.git diff --git a/remote.c b/remote.c index c70181cdc..ea2323bac 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); @@ -476,7 +478,7 @@ static void read_config(void) unsigned char sha1[20]; const char *head_ref; int flag; - if (default_remote_name) // did this already + if (default_remote_name) /* did this already */ return; default_remote_name = xstrdup("origin"); current_branch = NULL;