Skip to content

Commit 22e7f33

Browse files
committed
Set +x in index in gix-worktree-state make_mixed* fixtures
This adds `git update-index --chmod=+x` commands to the `make_mixed`, `make_mixed_without_submodules`, and `make_mixed_without_submodules_and_symlinks` fixtures used in gix-worktree-state `tests/state/checkout.rs` tests, so that files are staged and committed with the intended modes. The tests were actually passing before this change, but making it verifies that the tests still work even when the repository is as assumed. (Also, some of those tests are recently enabled or made more expansive on Windows, due to the preceding commit that makes them test symlinks, where applicable, on all platforms.)
1 parent d715e4a commit 22e7f33

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

gix-worktree-state/tests/fixtures/make_mixed.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mkdir dir/sub-dir
1717
(cd dir/sub-dir && ln -sf ../content symlink)
1818

1919
git add -A
20+
git update-index --chmod=+x executable # For Windows.
2021
git commit -m "Commit"
2122

2223
git init module1

gix-worktree-state/tests/fixtures/make_mixed_without_submodules.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ mkdir dir/sub-dir
1717
(cd dir/sub-dir && ln -sf ../content symlink)
1818

1919
git add -A
20+
git update-index --chmod=+x executable # For Windows.
2021
git commit -m "Commit"

gix-worktree-state/tests/fixtures/make_mixed_without_submodules_and_symlinks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ mkdir dir/sub-dir
1717
echo "even other content" > dir/sub-dir/file
1818

1919
git add -A
20+
git update-index --chmod=+x executable # For Windows.
2021
git commit -m "Commit"

0 commit comments

Comments
 (0)