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>2012-12-11 15:09:37 +0400
committernulltoken <emeric.fermas@gmail.com>2012-12-11 15:09:37 +0400
commit4c1cd49513ba0c78de54799661cd03661f8a31ad (patch)
tree57775f3cefd72c0a28882f008cd9a96b09ce15b2 /LibGit2Sharp/ObjectDatabase.cs
parent7c08048cfb150d50acc92fa404db256c29427b6b (diff)
Fix some issues pinpointed by Code Analysis
Diffstat (limited to 'LibGit2Sharp/ObjectDatabase.cs')
-rw-r--r--LibGit2Sharp/ObjectDatabase.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/LibGit2Sharp/ObjectDatabase.cs b/LibGit2Sharp/ObjectDatabase.cs
index 6ce7ada3..1ce72c46 100644
--- a/LibGit2Sharp/ObjectDatabase.cs
+++ b/LibGit2Sharp/ObjectDatabase.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
@@ -56,7 +57,9 @@ namespace LibGit2Sharp
if (repo.Info.IsBare && !Path.IsPathRooted(path))
{
- throw new InvalidOperationException(string.Format("Cannot create a blob in a bare repository from a relative path ('{0}').", path));
+ throw new InvalidOperationException(
+ string.Format(CultureInfo.InvariantCulture,
+ "Cannot create a blob in a bare repository from a relative path ('{0}').", path));
}
ObjectId id = Path.IsPathRooted(path)