aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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 &&
(