Use git command for committing instead of GitSharp

This commit is contained in:
Hylke Bons 2011-04-17 00:30:57 +01:00
parent 062d705920
commit 4eaa233bb6

View file

@ -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) {