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

Unified Diff: git_cl.py

Issue 103053011: Honor svn-remote.*.rewriteRoot option. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years 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_cl.py
diff --git a/git_cl.py b/git_cl.py
index bad3e657979cdb7ed6abe3f85c7412fbc36a5ffd..19fa105353a84cf9d55c71b133de139cda08ff9d 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -340,6 +340,11 @@ class Settings(object):
if match:
remote = match.group(1)
base_url = match.group(2)
+ rewrite_root = RunGit(
+ ['config', 'svn-remote.%s.rewriteRoot' % remote],
+ error_ok=True).strip()
+ if rewrite_root:
+ base_url = rewrite_root
fetch_spec = RunGit(
['config', 'svn-remote.%s.fetch' % remote],
error_ok=True).strip()
« 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