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
6fe02c11
Commit
6fe02c11
authored
May 15, 2013
by
Jameson Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch should not fail when remote HEAD reference is not present locally
parent
bc2020d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
src/remote.c
+0
-13
No files found.
src/remote.c
View file @
6fe02c11
...
...
@@ -870,19 +870,6 @@ static int update_tips_for_spec(git_remote *remote, git_refspec *spec, git_vecto
if
(
git_vector_init
(
&
update_heads
,
16
,
NULL
)
<
0
)
return
-
1
;
/* Let's go find HEAD, if it exists. Check only the first ref in the vector. */
if
(
refs
->
length
>
0
)
{
head
=
git_vector_get
(
refs
,
0
);
if
(
!
strcmp
(
head
->
name
,
GIT_HEAD_FILE
))
{
if
(
git_reference_create
(
&
ref
,
remote
->
repo
,
GIT_FETCH_HEAD_FILE
,
&
head
->
oid
,
1
)
<
0
)
goto
on_error
;
i
=
1
;
git_reference_free
(
ref
);
}
}
for
(;
i
<
refs
->
length
;
++
i
)
{
head
=
git_vector_get
(
refs
,
i
);
autotag
=
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