diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py index 69ef14eb44..d8d7b214e5 100755 --- a/scripts/contrib/patchreview.py +++ b/scripts/contrib/patchreview.py @@ -51,7 +51,7 @@ def blame_patch(patch): return subprocess.check_output(("git", "log", "--follow", "--find-renames", "--diff-filter=A", "--format=%s (%aN <%aE>)", - "--", patch)).decode("utf-8").splitlines() + "--", patch), cwd=os.path.dirname(patch)).decode("utf-8").splitlines() def patchreview(patches):