diff options
author | murgatroid99 <mlumish@google.com> | 2016-03-16 16:25:42 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-03-16 16:25:42 -0700 |
commit | 028bd45950818d0d4a59c6a17331c1a2b08915d6 (patch) | |
tree | e6022708548c7be3a9d973d38c638a6026914ae0 /tools | |
parent | 91bd67cb337d8794f41b481c773203e72492272b (diff) |
Update check copyright script precommit hook
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/distrib/check_copyright.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py index 99771f9632..5badbf484b 100755 --- a/tools/distrib/check_copyright.py +++ b/tools/distrib/check_copyright.py @@ -105,7 +105,7 @@ RE_LICENSE = dict( for k, v in LICENSE_PREFIX.iteritems()) if args.precommit: - FILE_LIST_COMMAND = 'git diff --name-only HEAD | grep -v ^third_party/' + FILE_LIST_COMMAND = 'git status -z | grep -Poz \'(?<=^[MARC][MARCD ] )[^\s]+\'' else: FILE_LIST_COMMAND = 'git ls-tree -r --name-only -r HEAD | grep -v ^third_party/' |