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
482d1748
Commit
482d1748
authored
8 years ago
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transports: smart: do not redeclare loop counters
parent
6cf575b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/transports/smart_protocol.c
+4
-4
No files found.
src/transports/smart_protocol.c
View file @
482d1748
...
...
@@ -412,12 +412,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
if
(
i
%
20
==
0
&&
t
->
rpc
)
{
git_pkt_ack
*
pkt
;
unsigned
int
i
;
unsigned
int
j
;
if
((
error
=
git_pkt_buffer_wants
(
wants
,
count
,
&
t
->
caps
,
&
data
))
<
0
)
goto
on_error
;
git_vector_foreach
(
&
t
->
common
,
i
,
pkt
)
{
git_vector_foreach
(
&
t
->
common
,
j
,
pkt
)
{
if
((
error
=
git_pkt_buffer_have
(
&
pkt
->
oid
,
&
data
))
<
0
)
goto
on_error
;
}
...
...
@@ -432,12 +432,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
/* Tell the other end that we're done negotiating */
if
(
t
->
rpc
&&
t
->
common
.
length
>
0
)
{
git_pkt_ack
*
pkt
;
unsigned
int
i
;
unsigned
int
j
;
if
((
error
=
git_pkt_buffer_wants
(
wants
,
count
,
&
t
->
caps
,
&
data
))
<
0
)
goto
on_error
;
git_vector_foreach
(
&
t
->
common
,
i
,
pkt
)
{
git_vector_foreach
(
&
t
->
common
,
j
,
pkt
)
{
if
((
error
=
git_pkt_buffer_have
(
&
pkt
->
oid
,
&
data
))
<
0
)
goto
on_error
;
}
...
...
This diff is collapsed.
Click to expand it.
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