From 1428f486b186ab111db1e073a32be9dfef9c9929 Mon Sep 17 00:00:00 2001 From: Hylke Date: Thu, 23 Jun 2011 13:56:25 +0100 Subject: [PATCH] repo: don't show warning statusicon upon initial commit --- SparkleLib/Git/SparkleRepoGit.cs | 11 ----------- SparkleLib/SparkleRepoBase.cs | 9 ++++----- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index c2612d71..ef289e19 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -527,17 +527,6 @@ namespace SparkleLib { return message.TrimEnd (); } - - public override void CreateInitialChangeSet () - { - base.CreateInitialChangeSet (); - Add (); - - string message = FormatCommitMessage (); - Commit (message); - } - - public override bool UsesNotificationCenter { get { diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs index d7e01545..da5636e0 100644 --- a/SparkleLib/SparkleRepoBase.cs +++ b/SparkleLib/SparkleRepoBase.cs @@ -86,12 +86,11 @@ namespace SparkleLib { this.status = status; }; - if (CurrentRevision == null) { - CreateInitialChangeSet (); - HasUnsyncedChanges = true; - } - CreateWatcher (); + + if (CurrentRevision == null) + CreateInitialChangeSet (); + CreateListener (); this.local_timer.Elapsed += delegate (object o, ElapsedEventArgs args) {