My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pylama/paths.patch

13 lines
481 B

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)