From: Marc Branchaud Date: Mon, 30 May 2011 21:51:19 GMT Subject: [PATCH 1/2] Added a test for "submodule add" using a ../relative/path/to/the/submodule/repo Message-ID: <1306792280-12768-2-git-send-email-marcnarc@xiplink.com> In-Reply-To: <1306792280-12768-1-git-send-email-marcnarc@xiplink.com> --- 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