Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJens Lehmann <Jens.Lehmann@web.de>2011-06-06 23:57:01 +0400
committerJunio C Hamano <gitster@pobox.com>2011-06-07 00:46:35 +0400
commit8537f0ef936781d3984491603cd1c8ff15d7a8a5 (patch)
tree5a58c655224904bcf89680090d10b5d00ad7bf67 /t
parente5af0de202e885b793482d416b8ce9d50dd2b8bc (diff)
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 <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t7400-submodule-basic.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index 874279e32d..cae5fd012c 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 &&
(