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
experimental/szager/collated-output
nsylvain@chromium.org 14 years ago
parent 6fba34d0cf
commit f7826d7495

@ -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 <branch>\' to switch to\n'

Loading…
Cancel
Save