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
973ed4c9
Commit
973ed4c9
authored
Jul 03, 2012
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo tests: do cleanup reinit tests
parent
e560aa8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tests-clar/repo/init.c
+5
-0
No files found.
tests-clar/repo/init.c
View file @
973ed4c9
...
...
@@ -234,6 +234,7 @@ void test_repo_init__reinit_doesnot_overwrite_ignorecase(void)
int
current_value
;
/* Init a new repo */
cl_set_cleanup
(
&
cleanup_repository
,
"not.overwrite.git"
);
cl_git_pass
(
git_repository_init
(
&
_repo
,
"not.overwrite.git"
,
1
));
/* Change the "core.ignorecase" config value to something unlikely */
...
...
@@ -241,6 +242,7 @@ void test_repo_init__reinit_doesnot_overwrite_ignorecase(void)
git_config_set_int32
(
config
,
"core.ignorecase"
,
42
);
git_config_free
(
config
);
git_repository_free
(
_repo
);
_repo
=
NULL
;
/* Reinit the repository */
cl_git_pass
(
git_repository_init
(
&
_repo
,
"not.overwrite.git"
,
1
));
...
...
@@ -265,13 +267,16 @@ void test_repo_init__reinit_overwrites_filemode(void)
#endif
/* Init a new repo */
cl_set_cleanup
(
&
cleanup_repository
,
"overwrite.git"
);
cl_git_pass
(
git_repository_init
(
&
_repo
,
"overwrite.git"
,
1
));
/* Change the "core.filemode" config value to something unlikely */
git_repository_config
(
&
config
,
_repo
);
git_config_set_bool
(
config
,
"core.filemode"
,
!
expected
);
git_config_free
(
config
);
git_repository_free
(
_repo
);
_repo
=
NULL
;
/* Reinit the repository */
cl_git_pass
(
git_repository_init
(
&
_repo
,
"overwrite.git"
,
1
));
...
...
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