]> git.ipfire.org Git - thirdparty/git.git/commit
submodule absorbgitdirs tests: add missing "Migrating git..." tests
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 20 Dec 2022 12:39:48 +0000 (13:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Dec 2022 01:21:43 +0000 (10:21 +0900)
commit49eb1d388ae618b61058d14b811684a89bdf84b6
treea24e8d4883b354b29be72cc57f1f3d5a38871b15
parent57e2c6ebbe7108b35ba30184dcbcb6c34c929ad8
submodule absorbgitdirs tests: add missing "Migrating git..." tests

Fix a blind spots in the tests surrounding "submodule absorbgitdirs"
and test what output we emit, and how emitted the message and behavior
interacts with a "git worktree" where the repository isn't at the base
of the working directory.

The "$(pwd)" instead of "$PWD" here is needed due to Windows, where
the latter will be a path like "/d/a/git/[...]", whereas we need
"D:/a/git/[...]".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7412-submodule-absorbgitdirs.sh