Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fc5836

Browse files
committed
Comment AggregateException in Proxy.cs
1 parent 1e1ee3a commit 1fc5836

File tree

1 file changed

+40
-39
lines changed

1 file changed

+40
-39
lines changed

LibGit2Sharp/Core/Proxy.cs

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -52,43 +52,43 @@ private static void BuildErrorMessageFromException(StringBuilder sb, int level,
5252
string indent = new string(' ', level * 4);
5353
sb.AppendFormat("{0}{1}", indent, ex.Message);
5454

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+
// }
9292
}
9393

9494
#endregion
@@ -2190,7 +2190,8 @@ public static IEnumerable<Reference> git_remote_ls(Repository repository, Remote
21902190
directRefs.Add(name, new DirectReference(name, repository, remoteHead.Oid));
21912191
}
21922192

2193-
currentHead = IntPtr.Add(currentHead, IntPtr.Size);
2193+
//currentHead = IntPtr.Add(currentHead, IntPtr.Size);
2194+
currentHead = new IntPtr(currentHead.ToInt64() + IntPtr.Size);
21942195
}
21952196

21962197
for (int i = 0; i < symRefs.Count; i++)
@@ -3141,7 +3142,7 @@ public static GitObjectType git_tree_entry_type(SafeHandle entry)
31413142
return NativeMethods.git_tree_entry_type(entry);
31423143
}
31433144

3144-
public static int git_tree_entrycount(GitObjectSafeHandle tree)
3145+
public static long git_tree_entrycount(GitObjectSafeHandle tree)
31453146
{
31463147
return (int)NativeMethods.git_tree_entrycount(tree);
31473148
}

0 commit comments

Comments
 (0)