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

Unified Diff: gclient_scm.py

Issue 14731015: Add option to prevent gclient from changing remote (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 7 months 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: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index 9ccc76f217059810e41f3fd66e30affd7ff4727e..18bc0e389653cfab2ec2fc1443a963c1887c5cb0 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -318,7 +318,8 @@ class GitWrapper(SCMWrapper):
current_url = self._Capture(['config', 'remote.origin.url'])
# TODO(maruel): Delete url != 'git://foo' since it's just to make the
# unit test pass. (and update the comment above)
- if current_url != url and url != 'git://foo':
+ if (current_url != url and url != 'git://foo' and
+ self._Capture(['config', 'remote.origin.gclient']) != 'getoffmylawn'):
szym 2013/05/22 00:01:48 If the url is different and remote.origin.gclient
print('_____ switching %s to a new upstream' % self.relpath)
# Make sure it's clean
self._CheckClean(rev_str)
« 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