mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 16:44:42 +04:00
Merge pull request #375 from vinayinvicible/master
only consider forward diff in changed files
This commit is contained in:
commit
d845ec6e36
2 changed files with 5 additions and 1 deletions
|
|
@ -401,6 +401,10 @@ def test_get_changed_files():
|
|||
)
|
||||
assert files == ['CHANGELOG.md', 'setup.py']
|
||||
|
||||
# files changed in source but not in origin should not be returned
|
||||
files = get_changed_files('HEAD~10', 'HEAD')
|
||||
assert files == []
|
||||
|
||||
|
||||
def test_lots_of_files(mock_out_store_directory, tempdir_factory):
|
||||
# windows xargs seems to have a bug, here's a regression test for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue