Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
f393d4e8
Commit
f393d4e8
authored
Feb 06, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clone: fetch all tags
parent
fb60d268
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
include/git2/clone.h
+1
-1
src/clone.c
+1
-0
No files found.
include/git2/clone.h
View file @
f393d4e8
...
@@ -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.
*/
*/
...
...
src/clone.c
View file @
f393d4e8
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment