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

Unified Diff: gclient_scm.py

Issue 6976050: Fix the call to "git checkout" on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 9 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
===================================================================
--- gclient_scm.py (revision 87522)
+++ gclient_scm.py (working copy)
@@ -313,7 +313,7 @@
# case 0
self._CheckClean(rev_str)
self._CheckDetachedHead(rev_str, options)
- self._Capture(['checkout', '--quiet', '%s^0' % revision])
+ self._Capture(['checkout', '--quiet', '%s' % revision])
if not printed_path:
print('\n_____ %s%s' % (self.relpath, rev_str))
elif current_type == 'hash':
@@ -518,7 +518,7 @@
if detach_head:
# Squelch git's very verbose detached HEAD warning and use our own
- self._Capture(['checkout', '--quiet', '%s^0' % revision])
+ self._Capture(['checkout', '--quiet', '%s' % revision])
print(
('Checked out %s to a detached HEAD. Before making any commits\n'
'in this repo, you should use \'git checkout <branch>\' to switch to\n'
« 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