Skip to content

Commit

Permalink
t4027: test diff for submodule with empty directory
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yin <pkufranky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ping Yin authored and Junio C Hamano committed May 5, 2008
1 parent c697ad1 commit 7c08a2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/t4027-diff-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7c08a2a

Please sign in to comment.