Make it compile again in Windows
This commit is contained in:
parent
8eedf5b148
commit
69829cb547
|
@ -71,7 +71,7 @@ namespace SparkleLib {
|
|||
|
||||
public override double Size {
|
||||
get {
|
||||
string file_path = Path.Combine (LocalPath, ".git", "repo_size");
|
||||
string file_path = SparkleHelpers.CombineMore (LocalPath, ".git", "repo_size");
|
||||
|
||||
try {
|
||||
return double.Parse (File.ReadAllText (file_path));
|
||||
|
@ -85,7 +85,7 @@ namespace SparkleLib {
|
|||
|
||||
public override double HistorySize {
|
||||
get {
|
||||
string file_path = Path.Combine (LocalPath, ".git", "repo_history_size");
|
||||
string file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_history_size");
|
||||
|
||||
try {
|
||||
return double.Parse (File.ReadAllText (file_path));
|
||||
|
@ -105,8 +105,8 @@ namespace SparkleLib {
|
|||
double history_size = CalculateSize (
|
||||
new DirectoryInfo (Path.Combine (LocalPath, ".git")));
|
||||
|
||||
string size_file_path = Path.Combine (LocalPath, ".git", "repo_size");
|
||||
string history_size_file_path = Path.Combine (LocalPath, ".git", "repo_history_size");
|
||||
string size_file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_size");
|
||||
string history_size_file_path = SparkleHelpers.CombineMore(LocalPath, ".git", "repo_history_size");
|
||||
|
||||
File.WriteAllText (size_file_path, size.ToString ());
|
||||
File.WriteAllText (history_size_file_path, history_size.ToString ());
|
||||
|
|
|
@ -67,6 +67,9 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="..\Git\SparkleFetcherGit.cs">
|
||||
<Link>SparkleFetcherGit.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\Git\SparkleGit.cs">
|
||||
<Link>SparkleGit.cs</Link>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="..\Git\SparkleRepoGit.cs">
|
||||
|
|
Loading…
Reference in a new issue