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

Unified Diff: gclient_scm.py

Issue 244253007: Fix gclient to correctly check out remote refs during update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 8 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 c0b4a325e9262c49df14e7d4c5356a7de430f2c6..80a6f0b954050ffe1e55668fddfe1ab5535376fb 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -342,7 +342,7 @@ class GitWrapper(SCMWrapper):
rev_type = "branch"
elif revision.startswith(self.remote + '/'):
# For compatibility with old naming, translate 'origin' to 'refs/heads'
ghost stip (do not use) 2014/04/21 21:26:57 you should change this comment to reflect the new
smut 2014/04/21 21:28:43 This comment is no longer applicable.
agable 2014/04/21 21:31:22 Done.
- revision = revision.replace(self.remote + '/', 'refs/heads/')
+ revision = 'refs/remotes/' + revision
rev_type = "branch"
else:
# hash is also a tag, only make a distinction at checkout
« 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