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
1d175074
Commit
1d175074
authored
Jan 05, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #528 from arrbee/valgrind-fixes-2
Valgrind fixes in smaller pieces
parents
91d46f8d
fa3cb0da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
src/config.c
+1
-1
src/index.c
+7
-1
tests-clay/object/commit/commitstagedfile.c
+0
-1
No files found.
src/config.c
View file @
1d175074
...
...
@@ -120,7 +120,7 @@ int git_config_add_file(git_config *cfg, git_config_file *file, int priority)
assert
(
cfg
&&
file
);
if
((
error
=
file
->
open
(
file
))
<
GIT_SUCCESS
)
return
git__
re
throw
(
error
,
"Failed to open config file"
);
return
git__throw
(
error
,
"Failed to open config file"
);
internal
=
git__malloc
(
sizeof
(
file_internal
));
if
(
internal
==
NULL
)
...
...
src/index.c
View file @
1d175074
...
...
@@ -510,6 +510,7 @@ int git_index_append2(git_index *index, const git_index_entry *source_entry)
int
git_index_remove
(
git_index
*
index
,
int
position
)
{
int
error
;
git_index_entry
*
entry
;
git_vector_sort
(
&
index
->
entries
);
...
...
@@ -517,7 +518,12 @@ int git_index_remove(git_index *index, int position)
if
(
entry
!=
NULL
)
git_tree_cache_invalidate_path
(
index
->
tree
,
entry
->
path
);
return
git_vector_remove
(
&
index
->
entries
,
(
unsigned
int
)
position
);
error
=
git_vector_remove
(
&
index
->
entries
,
(
unsigned
int
)
position
);
if
(
error
==
GIT_SUCCESS
)
index_entry_free
(
entry
);
return
error
;
}
int
git_index_find
(
git_index
*
index
,
const
char
*
path
)
...
...
tests-clay/object/commit/commitstagedfile.c
View file @
1d175074
...
...
@@ -7,7 +7,6 @@ void test_object_commit_commitstagedfile__initialize(void)
{
cl_fixture
(
"treebuilder"
);
cl_git_pass
(
git_repository_init
(
&
repo
,
"treebuilder/"
,
0
));
cl_git_pass
(
git_repository_open
(
&
repo
,
"treebuilder/.git"
));
cl_assert
(
repo
!=
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