style: improve compatibility with old git versions

Older versions of git need the '=' to connect --diff-filter to
its argument.

Change-Id: Ic62057567db061684be88a7c2d80a6a5d4c11dcf
This commit is contained in:
Curtis Dunham 2016-04-28 15:17:50 +01:00
parent f8c6ff1d1b
commit 8be5717a02

View file

@ -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")