@ -313,7 +313,7 @@ class GitWrapper(SCMWrapper):
# case 0
# case 0
self . _CheckClean ( rev_str )
self . _CheckClean ( rev_str )
self . _CheckDetachedHead ( rev_str , options )
self . _CheckDetachedHead ( rev_str , options )
self . _Capture ( [ ' checkout ' , ' --quiet ' , ' %s ^0 ' % revision ] )
self . _Capture ( [ ' checkout ' , ' --quiet ' , ' %s ' % revision ] )
if not printed_path :
if not printed_path :
print ( ' \n _____ %s %s ' % ( self . relpath , rev_str ) )
print ( ' \n _____ %s %s ' % ( self . relpath , rev_str ) )
elif current_type == ' hash ' :
elif current_type == ' hash ' :
@ -518,7 +518,7 @@ class GitWrapper(SCMWrapper):
if detach_head :
if detach_head :
# Squelch git's very verbose detached HEAD warning and use our own
# 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 (
print (
( ' Checked out %s to a detached HEAD. Before making any commits \n '
( ' 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 '
' in this repo, you should use \' git checkout <branch> \' to switch to \n '