diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-12-06 18:11:37 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-12-06 18:11:37 +0100 |
commit | 8febe654be29e0676476c9d23320a8944bd3f91a (patch) | |
tree | 4cdbd3b7941fa7938c60b8189f4d1651d19b0608 | |
parent | 5d1f31c6e67c0f7b8a5cadae32965be9c6123882 (diff) | |
parent | 326c9fc2ed2164e6840847fd073d8894ab1032c9 (diff) | |
download | libgit2-8febe654be29e0676476c9d23320a8944bd3f91a.tar.gz |
Merge pull request #3529 from mgorny/fix-checkout-test-umask
checkout test: Apply umask to file-mode test as well
-rw-r--r-- | tests/checkout/index.c | 2 |
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); } |