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
6124d983
Commit
6124d983
authored
Jun 01, 2015
by
Matti Virolainen
Committed by
Edward Thomson
Sep 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that an executable in index is not an executable after checkout.
parent
b1f6c0b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
tests/checkout/tree.c
+11
-0
No files found.
tests/checkout/tree.c
View file @
6124d983
...
...
@@ -973,6 +973,17 @@ void test_checkout_tree__filemode_preserved_in_index(void)
git_commit_free
(
commit
);
/* Finally, check out the text file again and check that the exec bit is cleared */
cl_git_pass
(
git_oid_fromstr
(
&
executable_oid
,
"cf80f8de9f1185bf3a05f993f6121880dd0cfbc9"
));
cl_git_pass
(
git_commit_lookup
(
&
commit
,
g_repo
,
&
executable_oid
));
cl_git_pass
(
git_checkout_tree
(
g_repo
,
(
const
git_object
*
)
commit
,
&
opts
));
cl_assert
(
entry
=
git_index_get_bypath
(
index
,
"a/b.txt"
,
0
));
cl_assert_equal_i
(
0100644
,
entry
->
mode
);
git_commit_free
(
commit
);
git_index_free
(
index
);
}
...
...
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