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.
Unified · Split
| @@ -1,11 +1,10 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | set -eu -o pipefail | 2 | set -eu -o pipefail |
| 3 | 3 | ||
| 4 | export GIT_INDEX_VERSION=2; | 4 | export GIT_INDEX_VERSION=2 |
| 5 | 5 | ||
| 6 | git init -q sub | 6 | git init -q sub |
| 7 | (cd sub | 7 | (cd sub |
| 8 | |||
| 9 | touch a b c | 8 | touch a b c |
| 10 | git add . | 9 | git add . |
| 11 | git commit -m "init" | 10 | git commit -m "init" |
| @@ -21,6 +20,7 @@ mkdir d · 9 unmodified lines | |||
| 21 | (cd d && touch a b c) | 20 | (cd d && touch a b c) |
| 22 | 21 | ||
| 23 | git add . | 22 | git add . |
| 23 | git update-index --chmod=+x b # For Windows. | ||
| 24 | git commit -m "init" | 24 | git commit -m "init" |
| 25 | 25 | ||
| 26 | git rev-parse @^{tree} > head.tree | 26 | git rev-parse @^{tree} > head.tree |
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | set -eu -o pipefail | 2 | set -eu -o pipefail |
| 3 | 3 | ||
| 4 | export GIT_INDEX_VERSION=2; | 4 | export GIT_INDEX_VERSION=2 |
| 5 | 5 | ||
| 6 | mkdir sub | 6 | mkdir sub |
| 7 | (cd sub | 7 | (cd sub |
| @@ -25,4 +25,5 @@ mkdir d · 17 unmodified lines | |||
| 25 | ) | 25 | ) |
| 26 | 26 | ||
| 27 | git add . | 27 | git add . |
| 28 | git update-index --chmod=+x b # For Windows. | ||
| 28 | git commit -m "init" | 29 | git commit -m "init" |