From: Techlive Zheng Date: Wed, 08 Aug 2012 19:42:49 GMT Subject: [PATCH 1/2] t9300: Add a test covering 'sub/testname' to 'sub/testname/testfile' renaming Message-ID: <1344454971-19559-1-git-send-email-techlivezheng@gmail.com> This test would fail at the moment. --- t/t9300-fast-import.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 2fcf269..2a8368e 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -1039,6 +1039,37 @@ test_expect_success \ git diff-tree -M -r M3^ M3 >actual && compare_diff_raw expect actual' +cat >input < $GIT_COMMITTER_DATE +data 8 +initial +M 100644 :1 testname + +commit refs/heads/M5 +mark :3 +committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE +data 8 +initial +from refs/heads/M4 +M 100644 :1 testname/testfile +D testname + +INPUT_END + +test_expect_success \ + 'M: rename file into new subdirectory with same name' \ + 'git fast-import