Commit e1623bba authored by jrobbins@chromium.org's avatar jrobbins@chromium.org

When getting content for a moved file w/ history, don't convert newlines in output of 'git show'

BUG=339068

Review URL: https://codereview.chromium.org/442893003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@287615 0039d316-1c4b-4281-b951-d872f2087c98
parent 107bca31
......@@ -1659,7 +1659,8 @@ class GitVCS(VersionControlSystem):
if filename not in self.hashes:
# If a rename doesn't change the content, we never get a hash.
base_content = RunShell(
["git", "show", "HEAD:" + filename], silent_ok=True)
["git", "show", "HEAD:" + filename], silent_ok=True,
universal_newlines=False)
elif not hash_before:
status = "A"
base_content = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment