mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo: add tests for invalid fast-import directives
Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
3e4e0ed2ed
commit
69f7224d95
@ -751,6 +751,21 @@ test_expect_success 'other startup error cases and requests for help' '
|
|||||||
)
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'invalid fast-import directives' '
|
||||||
|
(
|
||||||
|
git init invalid_directives &&
|
||||||
|
cd invalid_directives &&
|
||||||
|
|
||||||
|
echo "get-mark :15" | \
|
||||||
|
test_must_fail git filter-repo --stdin --force 2>err &&
|
||||||
|
test_i18ngrep "Unsupported command" err &&
|
||||||
|
|
||||||
|
echo "invalid-directive" | \
|
||||||
|
test_must_fail git filter-repo --stdin --force 2>err &&
|
||||||
|
test_i18ngrep "Could not parse line" err
|
||||||
|
)
|
||||||
|
'
|
||||||
|
|
||||||
test_expect_success 'mailmap sanity checks' '
|
test_expect_success 'mailmap sanity checks' '
|
||||||
(
|
(
|
||||||
git clone file://"$(pwd)"/analyze_me mailmap_sanity_checks &&
|
git clone file://"$(pwd)"/analyze_me mailmap_sanity_checks &&
|
||||||
|
Loading…
Reference in New Issue
Block a user