Use core.quotePath=false when git is listing files
This prevents git from putting quotes around some file names
(those that have astral-plane characters) and not around others.
R=maruel
Bug: 792302
Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: build_limited_scripts_slave
Change-Id: I3b6a6b36c4720116de811b40177b59aa25c263db
Reviewed-on: https://chromium-review.googlesource.com/815454
Commit-Queue: Aaron Gable <agable@chromium.org>
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
diff --git a/scm.py b/scm.py
index 8708c19..232fcb9 100644
--- a/scm.py
+++ b/scm.py
@@ -131,8 +131,8 @@
upstream_branch = GIT.GetUpstreamBranch(cwd)
if upstream_branch is None:
raise gclient_utils.Error('Cannot determine upstream branch')
- command = ['diff', '--name-status', '--no-renames',
- '-r', '%s...' % upstream_branch]
+ command = ['-c', 'core.quotePath=false', 'diff',
+ '--name-status', '--no-renames', '-r', '%s...' % upstream_branch]
if not files:
pass
elif isinstance(files, basestring):