summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-09-16 18:42:53 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-02 06:41:42 +0200
commitc8dbec4803aa7d8300f19a97431bbf631ac5a392 (patch)
tree1c58cd0f23b4ca27e7a43011407cd09e1d57f2ed /src
parentfe3a40a4ff056400cde6e456211d6b5f2ec1008e (diff)
downloadlibgit2-c8dbec4803aa7d8300f19a97431bbf631ac5a392.tar.gz
clone: remove the autotag option
Downloading all tags is part of what makes it a clone instead of simply a fetch.
Diffstat (limited to 'src')
-rw-r--r--src/clone.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/clone.c b/src/clone.c
index 13f2a8eea..d720907cc 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -310,7 +310,6 @@ static int create_and_configure_origin(
if ((error = git_remote_create(&origin, repo, options->remote_name, url)) < 0)
goto on_error;
- git_remote_set_autotag(origin, options->remote_autotag);
/*
* Don't write FETCH_HEAD, we'll check out the remote tracking
* branch ourselves based on the server's default.
@@ -364,13 +363,11 @@ static int setup_remotes_and_fetch(
git_remote_set_update_fetchhead(origin, 0);
- /* If the download_tags value has not been specified, then make sure to
- * download tags as well. It is set here because we want to download tags
- * on the initial clone, but do not want to persist the value in the
- * configuration file.
- */
- if (origin->download_tags == GIT_REMOTE_DOWNLOAD_TAGS_AUTO &&
- ((retcode = git_remote_add_fetch(origin, "refs/tags/*:refs/tags/*")) < 0))
+ /* Make sure to download all tags as well. It is set here because
+ * we want to download tags on the initial clone, but do not
+ * want to persist the value in the configuration file.
+ */
+ if((retcode = git_remote_add_fetch(origin, "refs/tags/*:refs/tags/*")) < 0)
goto on_error;
if ((retcode = git_remote_fetch(origin)) < 0)