From 8be5717a02d7c50e4bacd8f86b7ac05f233b0ded Mon Sep 17 00:00:00 2001 From: Curtis Dunham Date: Thu, 28 Apr 2016 15:17:50 +0100 Subject: [PATCH] style: improve compatibility with old git versions Older versions of git need the '=' to connect --diff-filter to its argument. Change-Id: Ic62057567db061684be88a7c2d80a6a5d4c11dcf --- util/style/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/style/repo.py b/util/style/repo.py index 1943e48b6..adcbdc95f 100644 --- a/util/style/repo.py +++ b/util/style/repo.py @@ -185,7 +185,7 @@ class GitRepo(AbstractRepo): if cached: cmd.append("--cached") if filter: - cmd += [ "--diff-filter", filter ] + cmd += [ "--diff-filter=%s" % filter ] cmd += [ self.head_revision(), "--" ] + files status = subprocess.check_output(cmd).rstrip("\n") -- 2.30.2