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
79ed94e0
Unverified
Commit
79ed94e0
authored
Mar 10, 2023
by
Laurence McGlashan
Committed by
GitHub
Mar 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply suggestions from code review
Co-authored-by: Qix <Qix-@users.noreply.github.com>
parent
1cc2979a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/git2/remote.h
+2
-2
src/libgit2/transports/smart_protocol.c
+1
-1
No files found.
include/git2/remote.h
View file @
79ed94e0
...
...
@@ -744,9 +744,9 @@ typedef struct {
git_proxy_options
proxy_opts
;
/**
* Depth of the fetch to perform
, has to be a positive integer
.
* Depth of the fetch to perform
. Depth <= 0 fetches the full history
.
*
* The default is -1
, which will fetch the full history
.
* The default is -1.
*/
int
depth
;
...
...
src/libgit2/transports/smart_protocol.c
View file @
79ed94e0
...
...
@@ -359,7 +359,7 @@ static int cap_not_sup_err(const char *cap_name)
/* Disables server capabilities we're not interested in */
static
int
setup_caps
(
transport_smart_caps
*
caps
,
const
git_fetch_negotiation
*
wants
)
{
if
(
wants
->
depth
)
{
if
(
wants
->
depth
>
0
)
{
if
(
!
caps
->
shallow
)
return
cap_not_sup_err
(
GIT_CAP_SHALLOW
);
}
else
{
...
...
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