Skip to content

Commit 8537f0e

Browse files
jlehmanngitster
authored andcommitted
submodule add: test failure when url is not configured in superproject
This documents the current behavior (submodule add with the url set in the superproject is already tested in t7403, t7406, t7407 and t7506). Signed-off-by: Jens Lehmann <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e5af0de commit 8537f0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t7400-submodule-basic.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,13 @@ test_expect_success 'add should fail when path is used by an existing directory'
446446
)
447447
'
448448

449+
test_expect_success 'add should fail when path is relative but no url is set in the superproject' '
450+
(
451+
cd addtest &&
452+
test_must_fail git submodule add ../repo relative
453+
)
454+
'
455+
449456
test_expect_success 'set up for relative path tests' '
450457
mkdir reltest &&
451458
(

0 commit comments

Comments
 (0)