mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-21 04:07:14 -05:00
t0001: allow implicit bare repo discovery for aliased-command test
8d1a744820 (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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
256554692d
commit
d21652903c
@@ -77,6 +77,7 @@ test_expect_success 'plain nested through aliased command' '
|
||||
'
|
||||
|
||||
test_expect_success 'plain nested in bare through aliased command' '
|
||||
test_config_global safe.bareRepository all &&
|
||||
(
|
||||
git init --bare bare-ancestor-aliased.git &&
|
||||
cd bare-ancestor-aliased.git &&
|
||||
|
||||
Reference in New Issue
Block a user