mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-11 12:09:07 +00:00
Clone: fetch all tags
This commit is contained in:
parent
fb60d268df
commit
f393d4e8d7
@ -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
|
|||||||
|
|
||||||
/* 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(
|
||||||
|
Loading…
Reference in New Issue
Block a user