summaryrefslogtreecommitdiff
path: root/t/t4027-diff-submodule.sh
diff options
context:
space:
mode:
authorPing Yin <pkufranky@gmail.com>2008-05-02 13:35:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-05 00:41:27 (GMT)
commit7c08a2a6370ea70f16addcbad9096b4510a6b467 (patch)
tree409574dd84696f702855c34841dd744ab30f2d2a /t/t4027-diff-submodule.sh
parentc697ad143ba1ff58b29e7efe149d244d4b7010a5 (diff)
downloadgit-7c08a2a6370ea70f16addcbad9096b4510a6b467.zip
git-7c08a2a6370ea70f16addcbad9096b4510a6b467.tar.gz
git-7c08a2a6370ea70f16addcbad9096b4510a6b467.tar.bz2
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>
Diffstat (limited to 't/t4027-diff-submodule.sh')
-rwxr-xr-xt/t4027-diff-submodule.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t4027-diff-submodule.sh b/t/t4027-diff-submodule.sh
index 1fd3fb7..ba6679c 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