summaryrefslogtreecommitdiff
path: root/tests/checkout/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/checkout/index.c')
-rw-r--r--tests/checkout/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkout/index.c b/tests/checkout/index.c
index 9fa901867..8af3e5684 100644
--- a/tests/checkout/index.c
+++ b/tests/checkout/index.c
@@ -298,7 +298,7 @@ void test_checkout_index__options_dir_modes(void)
/* File-mode test, since we're on the 'dir' branch */
cl_git_pass(p_stat("./testrepo/a/b.txt", &st));
- cl_assert_equal_i_fmt(st.st_mode, GIT_FILEMODE_BLOB_EXECUTABLE, "%07o");
+ cl_assert_equal_i_fmt(st.st_mode, GIT_FILEMODE_BLOB_EXECUTABLE & ~um, "%07o");
git_commit_free(commit);
}