mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
t2202: make sure "git add" (no args) stays a no-op
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f893b7420c
commit
76b623584c
|
@ -41,4 +41,14 @@ test_expect_success 'git add --all' '
|
||||||
test_cmp expect actual
|
test_cmp expect actual
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'Just "git add" is a no-op' '
|
||||||
|
git reset --hard &&
|
||||||
|
echo >will-remove &&
|
||||||
|
>will-not-be-added &&
|
||||||
|
git add &&
|
||||||
|
git diff-index --name-status --cached HEAD >actual &&
|
||||||
|
>expect &&
|
||||||
|
test_cmp expect actual
|
||||||
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue