diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index fed5778d..6d16e8e1 100755 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -71,7 +71,7 @@ namespace SparkleLib { public override double Size { get { - string file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine(); + string file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine (); try { return double.Parse (File.ReadAllText (file_path)); @@ -85,7 +85,7 @@ namespace SparkleLib { public override double HistorySize { get { - string file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine(); + string file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine (); try { return double.Parse (File.ReadAllText (file_path)); @@ -103,10 +103,10 @@ namespace SparkleLib { new DirectoryInfo (LocalPath)); double history_size = CalculateSize ( - new DirectoryInfo (new string [] {LocalPath, ".git"}.Combine() )); + new DirectoryInfo (Path.Combine (LocalPath, ".git"))); - string size_file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine(); - string history_size_file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine(); + string size_file_path = new string [] {LocalPath, ".git", "repo_size"}.Combine (); + string history_size_file_path = new string [] {LocalPath, ".git", "repo_history_size"}.Combine (); File.WriteAllText (size_file_path, size.ToString ()); File.WriteAllText (history_size_file_path, history_size.ToString ());