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
0b0957a6
Commit
0b0957a6
authored
May 07, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fileops: replace integer usage with more explicit enum in some git_futils_rmdir_r() calls
parent
d7d8a0bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tests-clar/repo/discover.c
+1
-1
tests-clar/repo/open.c
+3
-3
No files found.
tests-clar/repo/discover.c
View file @
0b0957a6
...
...
@@ -135,7 +135,7 @@ void test_repo_discover__0(void)
ensure_repository_discover
(
REPOSITORY_ALTERNATE_FOLDER_SUB_SUB
,
ceiling_dirs
,
sub_repository_path
);
ensure_repository_discover
(
REPOSITORY_ALTERNATE_FOLDER_SUB_SUB_SUB
,
ceiling_dirs
,
repository_path
);
cl_git_pass
(
git_futils_rmdir_r
(
TEMP_REPO_FOLDER
,
1
));
cl_git_pass
(
git_futils_rmdir_r
(
TEMP_REPO_FOLDER
,
GIT_DIRREMOVAL_FILES_AND_DIRS
));
git_repository_free
(
repo
);
git_buf_free
(
&
ceiling_dirs_buf
);
}
...
...
tests-clar/repo/open.c
View file @
0b0957a6
...
...
@@ -7,7 +7,7 @@ void test_repo_open__cleanup(void)
cl_git_sandbox_cleanup
();
if
(
git_path_isdir
(
"alternate"
))
git_futils_rmdir_r
(
"alternate"
,
1
);
git_futils_rmdir_r
(
"alternate"
,
GIT_DIRREMOVAL_FILES_AND_DIRS
);
}
void
test_repo_open__bare_empty_repo
(
void
)
...
...
@@ -202,8 +202,8 @@ void test_repo_open__bad_gitlinks(void)
cl_git_fail
(
git_repository_open_ext
(
&
repo
,
"alternate"
,
0
,
NULL
));
}
git_futils_rmdir_r
(
"invalid"
,
1
);
git_futils_rmdir_r
(
"invalid2"
,
1
);
git_futils_rmdir_r
(
"invalid"
,
GIT_DIRREMOVAL_FILES_AND_DIRS
);
git_futils_rmdir_r
(
"invalid2"
,
GIT_DIRREMOVAL_FILES_AND_DIRS
);
}
#ifdef GIT_WIN32
...
...
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