@@ -52,43 +52,43 @@ private static void BuildErrorMessageFromException(StringBuilder sb, int level,
52
52
string indent = new string ( ' ' , level * 4 ) ;
53
53
sb . AppendFormat ( "{0}{1}" , indent , ex . Message ) ;
54
54
55
- if ( ex is AggregateException )
56
- {
57
- AggregateException aggregateException = ( ( AggregateException ) ex ) . Flatten ( ) ;
58
-
59
- if ( aggregateException . InnerExceptions . Count == 1 )
60
- {
61
- sb . AppendLine ( ) ;
62
- sb . AppendLine ( ) ;
63
-
64
- sb . AppendFormat ( "{0}Contained Exception:{1}" , indent , Environment . NewLine ) ;
65
- BuildErrorMessageFromException ( sb , level + 1 , aggregateException . InnerException ) ;
66
- }
67
- else
68
- {
69
- sb . AppendLine ( ) ;
70
- sb . AppendLine ( ) ;
71
-
72
- sb . AppendFormat ( "{0}Contained Exceptions:{1}" , indent , Environment . NewLine ) ;
73
- for ( int i = 0 ; i < aggregateException . InnerExceptions . Count ; i ++ )
74
- {
75
- if ( i != 0 )
76
- {
77
- sb . AppendLine ( ) ;
78
- sb . AppendLine ( ) ;
79
- }
80
-
81
- BuildErrorMessageFromException ( sb , level + 1 , aggregateException . InnerExceptions [ i ] ) ;
82
- }
83
- }
84
- }
85
- else if ( ex . InnerException != null )
86
- {
87
- sb . AppendLine ( ) ;
88
- sb . AppendLine ( ) ;
89
- sb . AppendFormat ( "{0}Inner Exception:{1}" , indent , Environment . NewLine ) ;
90
- BuildErrorMessageFromException ( sb , level + 1 , ex . InnerException ) ;
91
- }
55
+ // if (ex is AggregateException)
56
+ // {
57
+ // AggregateException aggregateException = ((AggregateException)ex).Flatten();
58
+ //
59
+ // if (aggregateException.InnerExceptions.Count == 1)
60
+ // {
61
+ // sb.AppendLine();
62
+ // sb.AppendLine();
63
+ //
64
+ // sb.AppendFormat("{0}Contained Exception:{1}", indent, Environment.NewLine);
65
+ // BuildErrorMessageFromException(sb, level + 1, aggregateException.InnerException);
66
+ // }
67
+ // else
68
+ // {
69
+ // sb.AppendLine();
70
+ // sb.AppendLine();
71
+ //
72
+ // sb.AppendFormat("{0}Contained Exceptions:{1}", indent, Environment.NewLine);
73
+ // for (int i = 0; i < aggregateException.InnerExceptions.Count; i++)
74
+ // {
75
+ // if (i != 0)
76
+ // {
77
+ // sb.AppendLine();
78
+ // sb.AppendLine();
79
+ // }
80
+ //
81
+ // BuildErrorMessageFromException(sb, level + 1, aggregateException.InnerExceptions[i]);
82
+ // }
83
+ // }
84
+ // }
85
+ // else if (ex.InnerException != null)
86
+ // {
87
+ // sb.AppendLine();
88
+ // sb.AppendLine();
89
+ // sb.AppendFormat("{0}Inner Exception:{1}", indent, Environment.NewLine);
90
+ // BuildErrorMessageFromException(sb, level + 1, ex.InnerException);
91
+ // }
92
92
}
93
93
94
94
#endregion
@@ -2190,7 +2190,8 @@ public static IEnumerable<Reference> git_remote_ls(Repository repository, Remote
2190
2190
directRefs . Add ( name , new DirectReference ( name , repository , remoteHead . Oid ) ) ;
2191
2191
}
2192
2192
2193
- currentHead = IntPtr . Add ( currentHead , IntPtr . Size ) ;
2193
+ //currentHead = IntPtr.Add(currentHead, IntPtr.Size);
2194
+ currentHead = new IntPtr ( currentHead . ToInt64 ( ) + IntPtr . Size ) ;
2194
2195
}
2195
2196
2196
2197
for ( int i = 0 ; i < symRefs . Count ; i ++ )
@@ -3141,7 +3142,7 @@ public static GitObjectType git_tree_entry_type(SafeHandle entry)
3141
3142
return NativeMethods . git_tree_entry_type ( entry ) ;
3142
3143
}
3143
3144
3144
- public static int git_tree_entrycount ( GitObjectSafeHandle tree )
3145
+ public static long git_tree_entrycount ( GitObjectSafeHandle tree )
3145
3146
{
3146
3147
return ( int ) NativeMethods . git_tree_entrycount ( tree ) ;
3147
3148
}
0 commit comments