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
097c5bc7
Commit
097c5bc7
authored
Sep 16, 2015
by
Edward Thomson
Committed by
Carlos Martín Nieto
Nov 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkout::tree tests: don't use hardcoded mode
parent
d73bf243
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tests/checkout/tree.c
+8
-8
No files found.
tests/checkout/tree.c
View file @
097c5bc7
...
...
@@ -946,7 +946,7 @@ void test_checkout_tree__filemode_preserved_in_index(void)
cl_git_pass
(
git_checkout_tree
(
g_repo
,
(
const
git_object
*
)
commit
,
&
opts
));
cl_assert
(
entry
=
git_index_get_bypath
(
index
,
"executable.txt"
,
0
));
cl_assert
_equal_i
(
0100755
,
entry
->
mode
);
cl_assert
(
GIT_PERMS_IS_EXEC
(
entry
->
mode
)
);
git_commit_free
(
commit
);
...
...
@@ -957,7 +957,7 @@ void test_checkout_tree__filemode_preserved_in_index(void)
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
);
cl_assert
(
!
GIT_PERMS_IS_EXEC
(
entry
->
mode
)
);
git_commit_free
(
commit
);
...
...
@@ -968,7 +968,7 @@ void test_checkout_tree__filemode_preserved_in_index(void)
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
(
0100755
,
entry
->
mode
);
cl_assert
(
GIT_PERMS_IS_EXEC
(
entry
->
mode
)
);
git_commit_free
(
commit
);
...
...
@@ -979,7 +979,7 @@ void test_checkout_tree__filemode_preserved_in_index(void)
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
);
cl_assert
(
!
GIT_PERMS_IS_EXEC
(
entry
->
mode
)
);
git_commit_free
(
commit
);
...
...
@@ -1017,7 +1017,7 @@ void test_checkout_tree__filemode_preserved_in_workdir(void)
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
_equal_i
(
0100755
,
read_filemode
(
"executable.txt"
));
cl_assert
(
GIT_PERMS_IS_EXEC
(
read_filemode
(
"executable.txt"
)
));
git_commit_free
(
commit
);
...
...
@@ -1027,7 +1027,7 @@ void test_checkout_tree__filemode_preserved_in_workdir(void)
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
_equal_i
(
0100644
,
read_filemode
(
"a/b.txt"
));
cl_assert
(
!
GIT_PERMS_IS_EXEC
(
read_filemode
(
"a/b.txt"
)
));
git_commit_free
(
commit
);
...
...
@@ -1037,7 +1037,7 @@ void test_checkout_tree__filemode_preserved_in_workdir(void)
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
_equal_i
(
0100755
,
read_filemode
(
"a/b.txt"
));
cl_assert
(
GIT_PERMS_IS_EXEC
(
read_filemode
(
"a/b.txt"
)
));
git_commit_free
(
commit
);
...
...
@@ -1047,7 +1047,7 @@ void test_checkout_tree__filemode_preserved_in_workdir(void)
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
_equal_i
(
0100644
,
read_filemode
(
"a/b.txt"
));
cl_assert
(
!
GIT_PERMS_IS_EXEC
(
read_filemode
(
"a/b.txt"
)
));
git_commit_free
(
commit
);
#endif
...
...
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