From: Jeff King Date: Mon, 12 Mar 2007 18:58:50 +0000 (-0400) Subject: New fast-import test case for valid tree sorting X-Git-Tag: v1.5.1-rc1~43^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7411303861f02a28b76a4c43451c427a3439a5c;p=git.git New fast-import test case for valid tree sorting The Git tree sorting convention is more complex than just the name, it needs to include the mode too to make sure trees sort as though their name ends with "/". This is a simple test case that verifies fast-import keeps the tree ordering correct after editing the same tree twice in a single input stream. A recent proposed patch series (that has not yet been applied) will cause this test to fail, due to a bug in the way the series handles sorting within the trees. Signed-off-by: Jeff King Signed-off-by: Shawn O. Pearce --- diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 03f2f8f34..8e958da53 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -501,4 +501,54 @@ test_expect_success \ 'test `git-rev-parse --verify branch^1` \ = `git-rev-parse --verify K^1`' +### +### series L +### + +cat >input < $GIT_COMMITTER_DATE +data < $GIT_COMMITTER_DATE +data <expect <output && + git diff expect output' + test_done