From f7826d7495a58d2ff3f2b103542192a4d95a56de Mon Sep 17 00:00:00 2001 From: "nsylvain@chromium.org" Date: Thu, 2 Jun 2011 18:20:14 +0000 Subject: [PATCH] Fix the call to "git checkout" on Windows. The "^0" is not needed, and it confuses Windows since the carret is a special character. Review URL: http://codereview.chromium.org/6976050 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@87636 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gclient_scm.py b/gclient_scm.py index 85d38eb75..83955c697 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -313,7 +313,7 @@ class GitWrapper(SCMWrapper): # 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 @@ class GitWrapper(SCMWrapper): 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 \' to switch to\n'