depot/third_party/nixpkgs/pkgs/development/python-modules/pylama/paths.patch
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

13 lines
481 B
Diff

diff --git a/pylama/hook.py b/pylama/hook.py
index 029c9dc..9f1a9b9 100644
--- a/pylama/hook.py
+++ b/pylama/hook.py
@@ -26,7 +26,7 @@ def run(command: str) -> Tuple[int, List[bytes], List[bytes]]:
def git_hook(error=True):
"""Run pylama after git commit."""
- _, files_modified, _ = run("git diff-index --cached --name-only HEAD")
+ _, files_modified, _ = run("@git@ diff-index --cached --name-only HEAD")
options = parse_options()
setup_logger(options)