Skip to content

Commit

Permalink
submodule add: test failure when url is not configured in superproject
Browse files Browse the repository at this point in the history
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 <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jens Lehmann authored and Junio C Hamano committed Jun 6, 2011
1 parent e5af0de commit 8537f0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/t7400-submodule-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,13 @@ test_expect_success 'add should fail when path is used by an existing directory'
)
'

test_expect_success 'add should fail when path is relative but no url is set in the superproject' '
(
cd addtest &&
test_must_fail git submodule add ../repo relative
)
'

test_expect_success 'set up for relative path tests' '
mkdir reltest &&
(
Expand Down

0 comments on commit 8537f0e

Please sign in to comment.