project: fix diff printing with embedded %

The recent commit 84230009ee ("project:
make diff tools synchronous") broke repo diff if it includes % formats.
Add an explicit format string to fix.

Bug: https://crbug.com/gerrit/14208
Change-Id: Ie255a43c5b767488616b2b3dd15abc18f93bfab2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/299402
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Mike Frysinger 2021-03-09 11:31:14 -05:00
parent 5a4c8fde17
commit 9888accb0c

View File

@ -863,7 +863,7 @@ class Project(object):
out.nl()
out.project('project %s/' % self.relpath)
out.nl()
out.write(p.stdout)
out.write('%s', p.stdout)
return p.Wait() == 0
# Publish / Upload ##