From 9601506d31988af159f2a61c89b2b68c4d6cc817 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 21 Oct 2012 21:16:38 +0100 Subject: [PATCH] windows: fix for the .sparkleshare file sometimes not being hidden --- SparkleLib/Git/SparkleRepoGit.cs | 4 ---- SparkleLib/SparkleRepoBase.cs | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 16f65aa5..7058ee01 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -336,10 +336,6 @@ namespace SparkleLib.Git { if (git.ExitCode == 0) { Rebase (); - - string identifier_file_path = Path.Combine (LocalPath, ".sparkleshare"); - File.SetAttributes (identifier_file_path, FileAttributes.Hidden); - ClearCache (); return true; diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index 02202ada..9ae73c46 100755 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -155,6 +155,9 @@ namespace SparkleLib { this.identifier = Identifier; ChangeSets = GetChangeSets (); + string identifier_file_path = Path.Combine (LocalPath, ".sparkleshare"); + File.SetAttributes (identifier_file_path, FileAttributes.Hidden); + SyncStatusChanged += delegate (SyncStatus status) { Status = status; }; @@ -362,6 +365,9 @@ namespace SparkleLib { SparkleLogger.LogInfo ("SyncDown", Name + " | Done"); Error = ErrorStatus.None; + string identifier_file_path = Path.Combine (LocalPath, ".sparkleshare"); + File.SetAttributes (identifier_file_path, FileAttributes.Hidden); + ChangeSets = GetChangeSets (); if (!pre_sync_revision.Equals (CurrentRevision) && ChangeSets != null && ChangeSets.Count > 0) {