[PATCH 1/3] submodule add: test failure when url is not configured in superproject
- From
Jens Lehmann <jens.lehmann@web.de>
- Date
- Jun 6, 2011, 19:57 UTC
- Message-ID
- <4DED310D.9040300@web.de>
- In-Reply-To
- <4DED30E0.6090608@web.de>
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> --- t/t7400-submodule-basic.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 874279e..cae5fd0 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -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 && (
-- 1.7.6.rc0.3.g28a66