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
22d013b6
Commit
22d013b6
authored
Aug 21, 2018
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote: set the error before cleanup
Otherwise we'll return stack data to the caller.
parent
ad95873b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/remote.c
+2
-2
No files found.
src/remote.c
View file @
22d013b6
...
...
@@ -428,7 +428,7 @@ static int get_optional_config(
int
git_remote_lookup
(
git_remote
**
out
,
git_repository
*
repo
,
const
char
*
name
)
{
git_remote
*
remote
;
git_remote
*
remote
=
NULL
;
git_buf
buf
=
GIT_BUF_INIT
;
const
char
*
val
;
int
error
=
0
;
...
...
@@ -510,7 +510,7 @@ int git_remote_lookup(git_remote **out, git_repository *repo, const char *name)
if
((
error
=
get_optional_config
(
NULL
,
config
,
&
buf
,
refspec_cb
,
&
data
))
<
0
)
goto
cleanup
;
if
(
download_tags_value
(
remote
,
config
)
<
0
)
if
(
(
error
=
download_tags_value
(
remote
,
config
)
)
<
0
)
goto
cleanup
;
if
((
error
=
lookup_remote_prune_config
(
remote
,
config
,
name
))
<
0
)
...
...
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