Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-05-20 17:26:46 +0400
committernulltoken <emeric.fermas@gmail.com>2011-05-20 17:26:46 +0400
commit7508573882292d31c8cfc6f7e7effe64f7cb7004 (patch)
treefa7fe441400a433f90af4d0440fb34cb6f6ec6e0 /LibGit2Sharp/CommitCollection.cs
parent2785f5364abed63397fcc9e7ba84781a84cd543d (diff)
Fix some issues pinpointed by Code Analysis
Diffstat (limited to 'LibGit2Sharp/CommitCollection.cs')
-rw-r--r--LibGit2Sharp/CommitCollection.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGit2Sharp/CommitCollection.cs b/LibGit2Sharp/CommitCollection.cs
index 7be81504..e59337d3 100644
--- a/LibGit2Sharp/CommitCollection.cs
+++ b/LibGit2Sharp/CommitCollection.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
+using System.Globalization;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
@@ -116,7 +117,7 @@ namespace LibGit2Sharp
if (gitObj == null) // TODO: Should we check the type? Git-log allows TagAnnotation oid as parameter. But what about Blobs and Trees?
{
- throw new ArgumentException(string.Format("No valid object identified as '{0}' has been found in the repository.", shaOrReferenceName), "shaOrReferenceName");
+ throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "No valid object identified as '{0}' has been found in the repository.", shaOrReferenceName), "shaOrReferenceName");
}
return new CommitCollection(repo, sortOptions) { pushedObjectId = gitObj.Id };