Commit c648d4a8 by Carlos Martín Nieto

remote: don't auto-follow tags on an unamed remote

An unnamed remote is used for commands like

    git fetch git://host/repo

where no tags should be downloaded. Make this the default.
parent 218c88a9
...@@ -86,6 +86,11 @@ int git_remote_new(git_remote **out, git_repository *repo, const char *name, con ...@@ -86,6 +86,11 @@ int git_remote_new(git_remote **out, git_repository *repo, const char *name, con
goto on_error; goto on_error;
} }
/* A remote without a name doesn't download tags */
if (!name) {
remote->download_tags = GIT_REMOTE_DOWNLOAD_TAGS_NONE;
}
*out = remote; *out = remote;
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment