@@ -40,18 +40,14 @@ public static Branch Checkout(IRepository repository, string committishOrBranchS
40
40
Reference reference ;
41
41
GitObject obj ;
42
42
43
- Console . WriteLine ( "revparsing {0}" , committishOrBranchSpec ) ;
44
43
repository . RevParse ( committishOrBranchSpec , out reference , out obj ) ;
45
- Console . WriteLine ( "grabbed ref {0}, obj {1}" , reference , obj ) ;
46
44
if ( reference != null && reference . IsLocalBranch )
47
45
{
48
46
Branch branch = repository . Branches [ reference . CanonicalName ] ;
49
- Console . WriteLine ( "grabbed branch {0}" , branch ) ;
50
47
return Checkout ( repository , branch , options ) ;
51
48
}
52
49
53
50
Commit commit = obj . DereferenceToCommit ( true ) ;
54
- Console . WriteLine ( "dereferenced to commit {0}" , commit ) ;
55
51
Checkout ( repository , commit . Tree , options , committishOrBranchSpec ) ;
56
52
57
53
return repository . Head ;
@@ -92,7 +88,6 @@ public static Branch Checkout(IRepository repository, Branch branch, CheckoutOpt
92
88
branch . FriendlyName ) ;
93
89
}
94
90
95
- Console . WriteLine ( "branch: {0}" , branch ) ;
96
91
if ( ! branch . IsRemote && ! ( branch is DetachedHead ) &&
97
92
string . Equals ( repository . Refs [ branch . CanonicalName ] . TargetIdentifier , branch . Tip . Id . Sha ,
98
93
StringComparison . OrdinalIgnoreCase ) )
0 commit comments