summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-02-06 13:07:56 -0800
committerBen Straub <bs@github.com>2013-02-06 13:07:56 -0800
commitf393d4e8d725b3e45a4b438a6f3ab7be589b2806 (patch)
treee9658e0847b5044e99cae7fe397c5d3ff02dc7da /src/clone.c
parentfb60d268df2272626f48cfed7b2a185413e7e9f4 (diff)
downloadlibgit2-f393d4e8d725b3e45a4b438a6f3ab7be589b2806.tar.gz
Clone: fetch all tags
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clone.c b/src/clone.c
index 333bf2148..4b72b833c 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -417,6 +417,7 @@ static void normalize_options(git_clone_options *dst, const git_clone_options *s
/* Provide defaults for null pointers */
if (!dst->remote_name) dst->remote_name = "origin";
+ if (!dst->remote_autotag) dst->remote_autotag = GIT_REMOTE_DOWNLOAD_TAGS_ALL;
}
int git_clone(