mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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:
parent
5a4c8fde17
commit
9888accb0c
@ -863,7 +863,7 @@ class Project(object):
|
|||||||
out.nl()
|
out.nl()
|
||||||
out.project('project %s/' % self.relpath)
|
out.project('project %s/' % self.relpath)
|
||||||
out.nl()
|
out.nl()
|
||||||
out.write(p.stdout)
|
out.write('%s', p.stdout)
|
||||||
return p.Wait() == 0
|
return p.Wait() == 0
|
||||||
|
|
||||||
# Publish / Upload ##
|
# Publish / Upload ##
|
||||||
|
Loading…
Reference in New Issue
Block a user