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
cf688ffd
Commit
cf688ffd
authored
Mar 05, 2015
by
Pierre-Olivier Latour
Committed by
Carlos Martín Nieto
Mar 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed active refspecs not reset by git_remote_upload()
parent
7a5682f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/remote.c
+4
-0
No files found.
src/remote.c
View file @
cf688ffd
...
...
@@ -2330,6 +2330,10 @@ int git_remote_upload(git_remote *remote, const git_strarray *refspecs, const gi
(
error
=
git_remote_connect
(
remote
,
GIT_DIRECTION_PUSH
))
<
0
)
goto
cleanup
;
free_refspecs
(
&
remote
->
active_refspecs
);
if
(
dwim_refspecs
(
&
remote
->
active_refspecs
,
&
remote
->
refspecs
,
&
remote
->
refs
)
<
0
)
goto
cleanup
;
if
(
remote
->
push
)
{
git_push_free
(
remote
->
push
);
remote
->
push
=
NULL
;
...
...
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