Skip to content

Commit 8720acb

Browse files
committed
Avoid unneeded +x in make_rev_spec_parse_repos
The make_rev_spec_parse_repos fixture script used `chmod 755` to make a looose object file writable (so it could be corrupted, to test the treatment of corrupted objects). But this also made it executable, which was not needed (on any platforms). This commit changes it from 755 to 644 so that it is still made writable, but not made executable. (It does not start out being executable.) This does not affect the results of any tests.
1 parent ccb06a7 commit 8720acb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gix/tests/fixtures/make_rev_spec_parse_repos.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ git init --bare blob.corrupt
5353
echo bnkxmdwz | git hash-object -w --stdin
5454
oid=$(echo bmwsjxzi | git hash-object -w --stdin)
5555
oidf=objects/$(oid_to_path "$oid")
56-
chmod 755 $oidf
57-
echo broken >$oidf
56+
chmod 644 -- "$oidf"
57+
echo broken >"$oidf"
5858

5959
baseline "cafea"
6060
baseline "cafea^{object}"
@@ -424,4 +424,4 @@ git init invalid-head
424424
rm .git/refs/heads/main
425425
baseline 'HEAD'
426426
baseline 'HEAD:file'
427-
)
427+
)

0 commit comments

Comments
 (0)