Merge pull request #375 from vinayinvicible/master

only consider forward diff in changed files
This commit is contained in:
Anthony Sottile 2016-06-01 10:17:21 -07:00
commit d845ec6e36
2 changed files with 5 additions and 1 deletions

View file

@ -51,7 +51,7 @@ def _print_user_skipped(hook, write, args):
def get_changed_files(new, old):
return cmd_output(
'git', 'diff', '--name-only', '{0}..{1}'.format(old, new),
'git', 'diff', '--name-only', '{0}...{1}'.format(old, new),
)[1].splitlines()