From 7508573882292d31c8cfc6f7e7effe64f7cb7004 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Fri, 20 May 2011 15:26:46 +0200 Subject: Fix some issues pinpointed by Code Analysis --- LibGit2Sharp/CommitCollection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LibGit2Sharp/CommitCollection.cs') 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 }; -- cgit v1.2.3