projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c697ad1
)
t4027: test diff for submodule with empty directory
author
Ping Yin
<pkufranky@gmail.com>
Fri, 2 May 2008 13:35:33 +0000
(21:35 +0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 5 May 2008 00:41:27 +0000
(17:41 -0700)
Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4027-diff-submodule.sh
patch
|
blob
|
history
diff --git
a/t/t4027-diff-submodule.sh
b/t/t4027-diff-submodule.sh
index 1fd3fb74d763026d4e20a38fe9d2ed48dda74fed..ba6679c6e4032bb12e4206226f95770946ece8cc 100755
(executable)
--- 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