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
3f584b50
Commit
3f584b50
authored
Jul 31, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix Travis.
parent
383fb799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
tests-clar/checkout/checkout.c
+7
-1
No files found.
tests-clar/checkout/checkout.c
View file @
3f584b50
...
...
@@ -107,13 +107,19 @@ void test_checkout_checkout__symlinks(void)
test_file_contents
(
"./testrepo/link_to_new.txt"
,
"new.txt"
);
}
void
test_checkout_checkout__existing_file_
options
(
void
)
void
test_checkout_checkout__existing_file_
skip
(
void
)
{
git_checkout_opts
opts
=
{
0
};
cl_git_mkfile
(
"./testrepo/new.txt"
,
"This isn't what's stored!"
);
opts
.
existing_file_action
=
GIT_CHECKOUT_SKIP_EXISTING
;
cl_git_pass
(
git_checkout_head
(
g_repo
,
&
opts
,
NULL
));
test_file_contents
(
"./testrepo/new.txt"
,
"This isn't what's stored!"
);
}
void
test_checkout_checkout__existing_file_overwrite
(
void
)
{
git_checkout_opts
opts
=
{
0
};
cl_git_mkfile
(
"./testrepo/new.txt"
,
"This isn't what's stored!"
);
opts
.
existing_file_action
=
GIT_CHECKOUT_OVERWRITE_EXISTING
;
cl_git_pass
(
git_checkout_head
(
g_repo
,
&
opts
,
NULL
));
test_file_contents
(
"./testrepo/new.txt"
,
"my new file
\n
"
);
...
...
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