From e7411303861f02a28b76a4c43451c427a3439a5c Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 12 Mar 2007 14:58:50 -0400 Subject: [PATCH] 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 --- t/t9300-fast-import.sh | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) 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 -- 2.30.2