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
9f73e1f3
Commit
9f73e1f3
authored
May 01, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3081 from leoyanggit/build_warnings
Fix some build warnings
parents
5e00e5c9
69f0032b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
src/checkout.c
+1
-1
src/filter.c
+3
-3
src/remote.c
+4
-4
No files found.
src/checkout.c
View file @
9f73e1f3
...
...
@@ -1457,7 +1457,7 @@ static int blob_content_to_file(
writer
.
fd
=
fd
;
writer
.
open
=
1
;
error
=
git_filter_list_stream_blob
(
fl
,
blob
,
(
git_writestream
*
)
&
writer
);
error
=
git_filter_list_stream_blob
(
fl
,
blob
,
&
writer
.
base
);
assert
(
writer
.
open
==
0
);
...
...
src/filter.c
View file @
9f73e1f3
...
...
@@ -671,7 +671,7 @@ int git_filter_list_apply_to_data(
buf_stream_init
(
&
writer
,
tgt
);
if
((
error
=
git_filter_list_stream_data
(
filters
,
src
,
(
git_writestream
*
)
&
writer
))
<
0
)
&
writer
.
parent
))
<
0
)
return
error
;
assert
(
writer
.
complete
);
...
...
@@ -690,7 +690,7 @@ int git_filter_list_apply_to_file(
buf_stream_init
(
&
writer
,
out
);
if
((
error
=
git_filter_list_stream_file
(
filters
,
repo
,
path
,
(
git_writestream
*
)
&
writer
))
<
0
)
filters
,
repo
,
path
,
&
writer
.
parent
))
<
0
)
return
error
;
assert
(
writer
.
complete
);
...
...
@@ -721,7 +721,7 @@ int git_filter_list_apply_to_blob(
buf_stream_init
(
&
writer
,
out
);
if
((
error
=
git_filter_list_stream_blob
(
filters
,
blob
,
(
git_writestream
*
)
&
writer
))
<
0
)
filters
,
blob
,
&
writer
.
parent
))
<
0
)
return
error
;
assert
(
writer
.
complete
);
...
...
src/remote.c
View file @
9f73e1f3
...
...
@@ -171,11 +171,11 @@ static int create_internal(git_remote **out, git_repository *repo, const char *n
if
((
error
=
git_repository_config_snapshot
(
&
config
,
repo
))
<
0
)
goto
on_error
;
if
(
lookup_remote_prune_config
(
remote
,
config
,
name
)
<
0
)
if
(
(
error
=
lookup_remote_prune_config
(
remote
,
config
,
name
)
)
<
0
)
goto
on_error
;
/* Move the data over to where the matching functions can find them */
if
(
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
<
0
)
if
(
(
error
=
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
)
<
0
)
goto
on_error
;
}
...
...
@@ -457,7 +457,7 @@ int git_remote_lookup(git_remote **out, git_repository *repo, const char *name)
goto
cleanup
;
/* Move the data over to where the matching functions can find them */
if
(
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
<
0
)
if
(
(
error
=
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
)
<
0
)
goto
cleanup
;
*
out
=
remote
;
...
...
@@ -2330,7 +2330,7 @@ int git_remote_upload(git_remote *remote, const git_strarray *refspecs, const gi
goto
cleanup
;
free_refspecs
(
&
remote
->
active_refspecs
);
if
(
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
<
0
)
if
(
(
error
=
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
)
<
0
)
goto
cleanup
;
if
(
remote
->
push
)
{
...
...
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