From: Jens Lehmann Date: Mon, 6 Jun 2011 19:57:01 +0000 (+0200) Subject: submodule add: test failure when url is not configured in superproject X-Git-Tag: v1.7.6.1~15^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8537f0ef936781d3984491603cd1c8ff15d7a8a5;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 874279e32..cae5fd012 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 && (