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
d53cc13e
Commit
d53cc13e
authored
Mar 31, 2016
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3575 from pmq20/master-13jan16
Remove duplicated calls to git_mwindow_close
parents
bd4ef337
d4e4f272
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
src/indexer.c
+0
-1
src/pack.c
+0
-3
No files found.
src/indexer.c
View file @
d53cc13e
...
...
@@ -777,7 +777,6 @@ static int fix_thin_pack(git_indexer *idx, git_transfer_progress *stats)
curpos
=
delta
->
delta_off
;
error
=
git_packfile_unpack_header
(
&
size
,
&
type
,
&
idx
->
pack
->
mwf
,
&
w
,
&
curpos
);
git_mwindow_close
(
&
w
);
if
(
error
<
0
)
return
error
;
...
...
src/pack.c
View file @
d53cc13e
...
...
@@ -494,7 +494,6 @@ int git_packfile_resolve_header(
int
error
;
error
=
git_packfile_unpack_header
(
&
size
,
&
type
,
&
p
->
mwf
,
&
w_curs
,
&
curpos
);
git_mwindow_close
(
&
w_curs
);
if
(
error
<
0
)
return
error
;
...
...
@@ -517,7 +516,6 @@ int git_packfile_resolve_header(
while
(
type
==
GIT_OBJ_OFS_DELTA
||
type
==
GIT_OBJ_REF_DELTA
)
{
curpos
=
base_offset
;
error
=
git_packfile_unpack_header
(
&
size
,
&
type
,
&
p
->
mwf
,
&
w_curs
,
&
curpos
);
git_mwindow_close
(
&
w_curs
);
if
(
error
<
0
)
return
error
;
if
(
type
!=
GIT_OBJ_OFS_DELTA
&&
type
!=
GIT_OBJ_REF_DELTA
)
...
...
@@ -585,7 +583,6 @@ static int pack_dependency_chain(git_dependency_chain *chain_out,
elem
->
base_key
=
obj_offset
;
error
=
git_packfile_unpack_header
(
&
size
,
&
type
,
&
p
->
mwf
,
&
w_curs
,
&
curpos
);
git_mwindow_close
(
&
w_curs
);
if
(
error
<
0
)
goto
on_error
;
...
...
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