зеркало из https://github.com/microsoft/git.git
tests (status): spell out the `--find-renames` option in full
To avoid future ambiguities, we really want to use full option names in the test suite. `t7525-status-rename.sh` used an abbreviated form of the `--find-renames` option, though, so let's change that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
f6188dccb7
Коммит
c4932b00f4
|
@ -84,7 +84,7 @@ test_expect_success 'status score=100%' '
|
|||
test_i18ngrep "deleted:" actual &&
|
||||
test_i18ngrep "new file:" actual &&
|
||||
|
||||
git status --find-rename=100% >actual &&
|
||||
git status --find-renames=100% >actual &&
|
||||
test_i18ngrep "deleted:" actual &&
|
||||
test_i18ngrep "new file:" actual
|
||||
'
|
||||
|
@ -93,11 +93,11 @@ test_expect_success 'status score=01%' '
|
|||
git status -M=01% >actual &&
|
||||
test_i18ngrep "renamed:" actual &&
|
||||
|
||||
git status --find-rename=01% >actual &&
|
||||
git status --find-renames=01% >actual &&
|
||||
test_i18ngrep "renamed:" actual
|
||||
'
|
||||
|
||||
test_expect_success 'copies not overridden by find-rename' '
|
||||
test_expect_success 'copies not overridden by find-renames' '
|
||||
cp renamed copy &&
|
||||
git add copy &&
|
||||
|
||||
|
@ -105,7 +105,7 @@ test_expect_success 'copies not overridden by find-rename' '
|
|||
test_i18ngrep "copied:" actual &&
|
||||
test_i18ngrep "renamed:" actual &&
|
||||
|
||||
git -c status.renames=copies status --find-rename=01% >actual &&
|
||||
git -c status.renames=copies status --find-renames=01% >actual &&
|
||||
test_i18ngrep "copied:" actual &&
|
||||
test_i18ngrep "renamed:" actual
|
||||
'
|
||||
|
|
Загрузка…
Ссылка в новой задаче