@matheusbsbs / matheus-bagliano / commits / 7c08a2a637
Fork 0

t4027: test diff for submodule with empty directory

Signed-off-by: Ping Yin <pkufranky@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ping Yin committed May 2, 2008 at 21:35 UTC 7c08a2a6370ea70f16addcbad9096b4510a6b467
1 file changed +7
t/t4027-diff-submodule.sh
+7
@@ -50,4 +50,11 @@ test_expect_success 'git diff-files --raw' '
50 test_cmp expect actual.files
51 '
52
53 +test_expect_success 'git diff (empty submodule dir)' '
54 + : >empty &&
55 + rm -rf sub/* sub/.git &&
56 + git diff > actual.empty &&
57 + test_cmp empty actual.empty
58 +'
59 +
60 test_done