Skip to content

Commit 7041e73

Browse files
committed
Use .git::$INDEX_ALLOCATION instead of .git:$I30
This seems more effective at revealing such a vulnerability. I don't know why, since both should in principle work fine.
1 parent 49eb14c commit 7041e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-worktree/tests/fixtures/make_traverse_ntfs_stream.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git init -- "$repo"
66
cd -- "$repo"
77

88
# shellcheck disable=SC2016
9-
target_dir='subdir/.git:$I30/hooks'
9+
target_dir='subdir/.git::$INDEX_ALLOCATION/hooks'
1010
target_dir_standin="$(printf '%s' "$target_dir" | sed 's|:|,|g')"
1111
target_file="$target_dir/pre-commit"
1212
target_file_standin="$target_dir_standin/pre-commit"

0 commit comments

Comments
 (0)