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:
parent
f8c6ff1d1b
commit
8be5717a02
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue