[PATCH 1/2] Added a test for "submodule add" using a ../relative/path/to/the/submodule/repo
---
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 b2b26b7..bbcfc61 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -86,6 +86,13 @@ test_expect_success 'submodule add' '
test_cmp empty untracked
'
+test_expect_failure 'submodule add with relative path to submodule repo' '
+ (
+ cd addtest &&
+ git submodule add ../.subrepo relative_subrepo_path
+ )
+'
+
test_expect_success 'submodule add to .gitignored path fails' '
(
cd addtest-ignore &&
--
1.7.5.3.686.g35b8