From 4eaa233bb6b2e5e3b5d0ed8e8038ed4c23ba2cc9 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 17 Apr 2011 00:30:57 +0100 Subject: [PATCH] Use git command for committing instead of GitSharp --- SparkleLib/SparkleRepo.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SparkleLib/SparkleRepo.cs b/SparkleLib/SparkleRepo.cs index 4ca777cb..0335ec2c 100644 --- a/SparkleLib/SparkleRepo.cs +++ b/SparkleLib/SparkleRepo.cs @@ -668,12 +668,14 @@ namespace SparkleLib { // Commits the made changes new public void Commit (string message) { - if (!AnyDifferences) return; - base.Commit (message); - _CurrentHash = GetCurrentHash () + SparkleGit git = new SparkleGit (LocalPath, "commit -m '" + message + "'"); + git.Start (); + git.WaitForExit (); + + _CurrentHash = GetCurrentHash (); SparkleHelpers.DebugInfo ("Commit", "[" + Name + "] " + message + " (" + _CurrentHash); @@ -718,7 +720,7 @@ namespace SparkleLib { _IsSyncing = false; _IsFetching = false; - _CurrentHash = GetCurrentCommit (); + _CurrentHash = GetCurrentHash (); if (git.ExitCode != 0) {