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>
)
'
+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 &&
(