--- 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html