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
1de77cd3
Commit
1de77cd3
authored
Apr 11, 2012
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cannot set workdir to a nonexistent dir
parent
64b402f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests-clar/repo/setters.c
+3
-0
No files found.
tests-clar/repo/setters.c
View file @
1de77cd3
#include "clar_libgit2.h"
#include "buffer.h"
#include "posix.h"
static
git_repository
*
repo
;
...
...
@@ -7,12 +8,14 @@ void test_repo_setters__initialize(void)
{
cl_fixture_sandbox
(
"testrepo.git"
);
cl_git_pass
(
git_repository_open
(
&
repo
,
"testrepo.git"
));
cl_must_pass
(
p_mkdir
(
"new_workdir"
,
0777
));
}
void
test_repo_setters__cleanup
(
void
)
{
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"testrepo.git"
);
cl_must_pass
(
p_rmdir
(
"new_workdir"
));
}
void
test_repo_setters__setting_a_workdir_turns_a_bare_repository_into_a_standard_one
(
void
)
...
...
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