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