Skip to content

Commit a1cdbd5

Browse files
committed
t0001: allow implicit bare repo discovery for aliased-command test
8d1a744 (setup.c: create `safe.bareRepository`, 2022-07-14) introduced a setting to restrict implicit bare repository discovery, mitigating a social-engineering attack where an embedded bare repo's hooks get executed unknowingly. To allow for that default to change at some stage in the future, the tests need to be prepared. This commit adjusts a test accordingly that runs `git aliasedinit` from inside a bare repo to verify that aliased commands work there. The test is about alias resolution, not bare repo discovery, so add `test_config_global safe.bareRepository all` to opt in explicitly. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent cf2139f commit a1cdbd5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t0001-init.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ test_expect_success 'plain nested through aliased command' '
7777
'
7878

7979
test_expect_success 'plain nested in bare through aliased command' '
80+
test_config_global safe.bareRepository all &&
8081
(
8182
git init --bare bare-ancestor-aliased.git &&
8283
cd bare-ancestor-aliased.git &&

0 commit comments

Comments
 (0)