Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Unified Diff: git_auto_svn.py

Issue 745473003: git_auto_svn.py: Rewrite http SVN URLs to https (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Now using urlparse Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_auto_svn.py
diff --git a/git_auto_svn.py b/git_auto_svn.py
index 4faa9a0d5c2bc3133e67260bddbe648384aa1b32..d3a966a21b09e5f502dc742315d55416a88b84be 100755
--- a/git_auto_svn.py
+++ b/git_auto_svn.py
@@ -83,6 +83,11 @@ def main(argv):
assert svn_repo is not None, 'Unable to find svn repo for %s' % match.group(1)
print 'Found upstream svn repo %s and path %s' % (svn_repo, svn_path)
+ # TODO(kjellander): Remove when WebRTC has moved to Git (crbug.com/435091)
+ svn_url = urlparse.urlparse(svn_repo)
+ if svn_url.scheme == 'http' and svn_url.hostname.endswith('googlecode.com'):
+ svn_repo = svn_repo.replace('http://', 'https://')
+
set_config('svn-remote.svn.url', svn_repo)
set_config('svn-remote.svn.fetch',
'%s:refs/remotes/%s' % (svn_path, upstream))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698