Revision 7c0282bfb9038516b0eeb3b7cb3c1d6ee3cb20de authored by Mike Ralphson on 17 April 2009, 18:13:29 UTC, committed by Junio C Hamano on 20 April 2009, 22:55:56 UTC
Signed-off-by: Mike Ralphson <mike@abacus.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a162e78
t7506-status-submodule.sh
#!/bin/sh
test_description='git status for submodule'
. ./test-lib.sh
test_expect_success 'setup' '
test_create_repo sub
cd sub &&
: >bar &&
git add bar &&
git commit -m " Add bar" &&
cd .. &&
git add sub &&
git commit -m "Add submodule sub"
'
test_expect_success 'status clean' '
git status |
grep "nothing to commit"
'
test_expect_success 'status -a clean' '
git status -a |
grep "nothing to commit"
'
test_expect_success 'rm submodule contents' '
rm -rf sub/* sub/.git
'
test_expect_success 'status clean (empty submodule dir)' '
git status |
grep "nothing to commit"
'
test_expect_success 'status -a clean (empty submodule dir)' '
git status -a |
grep "nothing to commit"
'
test_done
Computing file changes ...