sebdah/git-pylint-commit-hook

Old file names of moved files are checked

sebdah opened this issue · 0 comments

If you rename a file, the pre commit hook will try to lint both the old and the new file name. The commit hook should look at the full diff-index output and take action upon the status there.

[sebastian ~/git/avail (support/10.0.x)]$ git diff-index --cached HEAD
:100755 100755 cd8b2c07ba0dd9d25e272d666d7836cbf9b6192d 1fbb2e9a61cd28c32db54916c9baa2c8cfcd63d1 M  host-packages/gk/gk/etc/ami-init.d/15-crontab
:100755 000000 e7dd12eeedeb6437c875321a61a5e95c4e23bc29 0000000000000000000000000000000000000000 D  host-packages/gk/gk/usr/local/bin/cust-data-backup.py
:000000 100755 0000000000000000000000000000000000000000 98ca01f224265b815b7d4c4f71b861d0fd20d4cc A  host-packages/gk/gk/usr/local/bin/cust_data_backup.py