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