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
7d4b65f6
Commit
7d4b65f6
authored
Dec 17, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentations
parent
6bd09ecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/remote.c
+8
-8
No files found.
src/remote.c
View file @
7d4b65f6
...
...
@@ -673,7 +673,7 @@ static int update_tips_callback(git_remote_head *head, void *payload)
git_vector
*
refs
=
(
git_vector
*
)
payload
;
git_vector_insert
(
refs
,
head
);
return
0
;
return
0
;
}
static
int
remote_head_for_fetchspec_src
(
git_remote_head
**
out
,
git_vector
*
update_heads
,
const
char
*
fetchspec_src
)
...
...
@@ -684,11 +684,11 @@ static int remote_head_for_fetchspec_src(git_remote_head **out, git_vector *upda
assert
(
update_heads
&&
fetchspec_src
);
*
out
=
NULL
;
git_vector_foreach
(
update_heads
,
i
,
remote_ref
)
{
if
(
strcmp
(
remote_ref
->
name
,
fetchspec_src
)
==
0
)
{
*
out
=
remote_ref
;
break
;
git_vector_foreach
(
update_heads
,
i
,
remote_ref
)
{
if
(
strcmp
(
remote_ref
->
name
,
fetchspec_src
)
==
0
)
{
*
out
=
remote_ref
;
break
;
}
}
...
...
@@ -759,7 +759,7 @@ static int git_remote_write_fetchhead(git_remote *remote, git_vector *update_hea
}
/* Create the FETCH_HEAD file */
git_vector_foreach
(
update_heads
,
i
,
remote_ref
)
{
git_vector_foreach
(
update_heads
,
i
,
remote_ref
)
{
int
merge_this_fetchhead
=
(
merge_remote_ref
==
remote_ref
);
if
(
!
include_all_fetchheads
&&
...
...
@@ -815,7 +815,7 @@ int git_remote_update_tips(git_remote *remote)
/* Make a copy of the transport's refs */
if
(
git_vector_init
(
&
refs
,
16
,
NULL
)
<
0
||
git_vector_init
(
&
update_heads
,
16
,
NULL
)
<
0
)
git_vector_init
(
&
update_heads
,
16
,
NULL
)
<
0
)
return
-
1
;
if
(
git_remote_ls
(
remote
,
update_tips_callback
,
&
refs
)
<
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