Commit 1dd0eea6 authored by maruel@chromium.org's avatar maruel@chromium.org

Hack to work around bad cygwin, TMP and svn interaction.

Review URL: http://codereview.chromium.org/1702012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@45852 0039d316-1c4b-4281-b951-d872f2087c98
parent 99ccbc58
......@@ -353,7 +353,16 @@ def _SendChangeSVN(options):
gclient_utils.FileWrite(full_path, options.diff, 'wb')
# Committing it will trigger a try job.
command = ['svn', 'import', '-q', temp_dir, options.svn_repo, '--file',
if sys.platform == "cygwin":
# Small chromium-specific issue here:
# git-try uses /usr/bin/python on cygwin but svn.bat will be used
# instead of /usr/bin/svn by default. That causes bad things(tm) since
# Windows' svn.exe has no clue about cygwin paths. Hence force to use
# the cygwin version in this particular context.
exe = "/usr/bin/svn"
else:
exe = "svn"
command = [exe, 'import', '-q', temp_dir, options.svn_repo, '--file',
temp_file.name]
gclient_utils.CheckCall(command)
except gclient_utils.CheckCallError, e:
......
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