From 7c08a2a6370ea70f16addcbad9096b4510a6b467 Mon Sep 17 00:00:00 2001 From: Ping Yin Date: Fri, 2 May 2008 21:35:33 +0800 Subject: [PATCH] t4027: test diff for submodule with empty directory Signed-off-by: Ping Yin Signed-off-by: Junio C Hamano --- t/t4027-diff-submodule.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t4027-diff-submodule.sh b/t/t4027-diff-submodule.sh index 1fd3fb74d..ba6679c6e 100755 --- a/t/t4027-diff-submodule.sh +++ b/t/t4027-diff-submodule.sh @@ -50,4 +50,11 @@ test_expect_success 'git diff-files --raw' ' test_cmp expect actual.files ' +test_expect_success 'git diff (empty submodule dir)' ' + : >empty && + rm -rf sub/* sub/.git && + git diff > actual.empty && + test_cmp empty actual.empty +' + test_done -- 2.30.2