Skip to content

Commit f72ff21

Browse files
committed
Set +x in index in v2_all_file_kinds and v2_deeper_tree fixtures
This adds `git update-index --chmod=+x` commands in two of the gix-index v2 fixture scripts so that they can set executable bits on Windows, where the plain `chmod +x` commands have no effect.
1 parent 06a2353 commit f72ff21

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/usr/bin/env bash
22
set -eu -o pipefail
33

4-
export GIT_INDEX_VERSION=2;
4+
export GIT_INDEX_VERSION=2
55

66
git init -q sub
77
(cd sub
8-
98
touch a b c
109
git add .
1110
git commit -m "init"
@@ -21,6 +20,7 @@ mkdir d
2120
(cd d && touch a b c)
2221

2322
git add .
23+
git update-index --chmod=+x b # For Windows.
2424
git commit -m "init"
2525

2626
git rev-parse @^{tree} > head.tree

gix-index/tests/fixtures/make_index/v2_deeper_tree.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -eu -o pipefail
33

4-
export GIT_INDEX_VERSION=2;
4+
export GIT_INDEX_VERSION=2
55

66
mkdir sub
77
(cd sub
@@ -25,4 +25,5 @@ mkdir d
2525
)
2626

2727
git add .
28+
git update-index --chmod=+x b # For Windows.
2829
git commit -m "init"

0 commit comments

Comments
 (0)