mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-11-07 09:20:29 +00:00
filter-repo: add a test just to get line coverage of an unusual error
Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
cd9ea5af9b
commit
365afadfd2
@ -151,4 +151,16 @@ test_expect_success 'erroneous.py' '
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success 'other error cases' '
|
||||
GIT_CEILING_DIRECTORIES=$(pwd) &&
|
||||
export GIT_CEILING_DIRECTORIES &&
|
||||
(
|
||||
mkdir other &&
|
||||
cd other &&
|
||||
|
||||
! python -c "import git_filter_repo as fr; fr.GitUtils.get_commit_count(\".\", [\"HEAD\"])" 2>err &&
|
||||
test_i18ngrep ". does not appear to be a valid git repository" err
|
||||
)
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Loading…
Reference in New Issue
Block a user