Skip to content

Commit 6846c90

Browse files
committed
Pass --literally to hash-object when making tree
This is needed on some Git versions. It seems it was not needed on older versions, even though their git-fsck detected the unusual filenames when run. It is supported even on those older versions, so the script should still run on them.
1 parent 89ee180 commit 6846c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-worktree/tests/fixtures/make_traverse_dotgit_slashes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ printf '%s' "$blob_hash" | xxd -r -p >blob-hash-bytes
2222
tree_hash="$(
2323
printf '%s %s\0' "$filemode" "$filename" |
2424
cat - blob-hash-bytes |
25-
git hash-object -t tree -w --stdin
25+
git hash-object -t tree -w --stdin --literally
2626
)"
2727

2828
rm blob-hash-bytes

0 commit comments

Comments
 (0)