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
7635a118
Commit
7635a118
authored
Oct 17, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix example compilation
parent
216863c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/network/fetch.c
+1
-1
examples/network/index-pack.c
+1
-1
No files found.
examples/network/fetch.c
View file @
7635a118
...
...
@@ -34,7 +34,7 @@ static void *download(void *ptr)
// Download the packfile and index it. This function updates the
// amount of received data and the indexer stats which lets you
// inform the user about progress.
if
(
git_remote_download
(
data
->
remote
,
data
->
bytes
)
<
0
)
{
if
(
git_remote_download
(
data
->
remote
,
data
->
bytes
,
NULL
,
NULL
)
<
0
)
{
data
->
ret
=
-
1
;
goto
exit
;
}
...
...
examples/network/index-pack.c
View file @
7635a118
...
...
@@ -33,7 +33,7 @@ int index_pack(git_repository *repo, int argc, char **argv)
return
EXIT_FAILURE
;
}
if
(
git_indexer_stream_new
(
&
idx
,
"."
)
<
0
)
{
if
(
git_indexer_stream_new
(
&
idx
,
"."
,
NULL
,
NULL
)
<
0
)
{
puts
(
"bad idx"
);
return
-
1
;
}
...
...
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