Commit f393d4e8 by Ben Straub

Clone: fetch all tags

parent fb60d268
...@@ -56,7 +56,7 @@ GIT_BEGIN_DECL ...@@ -56,7 +56,7 @@ GIT_BEGIN_DECL
* - `remote_callbacks` may be used to specify custom progress callbacks for * - `remote_callbacks` may be used to specify custom progress callbacks for
* the origin remote before the fetch is initiated. * the origin remote before the fetch is initiated.
* - `remote_autotag` may be used to specify the autotag setting before the * - `remote_autotag` may be used to specify the autotag setting before the
* initial fetch. * initial fetch. The default is GIT_REMOTE_DOWNLOAD_TAGS_ALL.
* - `checkout_branch` gives the name of the branch to checkout. NULL means * - `checkout_branch` gives the name of the branch to checkout. NULL means
* use the remote's HEAD. * use the remote's HEAD.
*/ */
......
...@@ -417,6 +417,7 @@ static void normalize_options(git_clone_options *dst, const git_clone_options *s ...@@ -417,6 +417,7 @@ static void normalize_options(git_clone_options *dst, const git_clone_options *s
/* Provide defaults for null pointers */ /* Provide defaults for null pointers */
if (!dst->remote_name) dst->remote_name = "origin"; if (!dst->remote_name) dst->remote_name = "origin";
if (!dst->remote_autotag) dst->remote_autotag = GIT_REMOTE_DOWNLOAD_TAGS_ALL;
} }
int git_clone( int git_clone(
......
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