From: Ping Yin Date: Fri, 2 May 2008 13:35:33 +0000 (+0800) Subject: t4027: test diff for submodule with empty directory X-Git-Tag: v1.5.6-rc0~68^2~2^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c08a2a6370ea70f16addcbad9096b4510a6b467;p=git.git t4027: test diff for submodule with empty directory Signed-off-by: Ping Yin Signed-off-by: Junio C Hamano --- 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