History

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.

Eliah Kagan committed 2 years ago

Commit f72ff211 parent 06a23532 files · +4 −3Browse files

Unified · Split

2 files
  1. gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh +2 −2
  2. gix-index/tests/fixtures/make_index/v2_deeper_tree.sh +2 −1
gix-index/tests/fixtures/make_index/v2_all_file_kinds.sh+2−2
@@ -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 · 9 unmodified lines
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+2−1
@@ -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 · 17 unmodified lines
2525 )
2626
2727 git add .
28+git update-index --chmod=+x b # For Windows.
2829 git commit -m "init"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t