mirror of
https://github.com/git/git.git
synced 2024-11-08 02:03:12 +01:00
050288d52d
Because we do not even check the timestamp to determie if a gitlink is up to date or not, triggering the racy-timestamp check for gitlinks does not make sense. This fixes the recently added test in t7506. Signed-off-by: Junio C Hamano <gitster@pobox.com>
38 lines
710 B
Bash
Executable file
38 lines
710 B
Bash
Executable file
#!/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
|