Use git command for committing instead of GitSharp
This commit is contained in:
parent
9604be2a53
commit
dc11211a00
|
@ -668,12 +668,14 @@ namespace SparkleLib {
|
||||||
// Commits the made changes
|
// Commits the made changes
|
||||||
new public void Commit (string message)
|
new public void Commit (string message)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!AnyDifferences)
|
if (!AnyDifferences)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
base.Commit (message);
|
SparkleGit git = new SparkleGit (LocalPath, "commit -m '" + message + "'");
|
||||||
_CurrentHash = GetCurrentHash ()
|
git.Start ();
|
||||||
|
git.WaitForExit ();
|
||||||
|
|
||||||
|
_CurrentHash = GetCurrentHash ();
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Commit", "[" + Name + "] " + message + " (" + _CurrentHash);
|
SparkleHelpers.DebugInfo ("Commit", "[" + Name + "] " + message + " (" + _CurrentHash);
|
||||||
|
|
||||||
|
@ -718,7 +720,7 @@ namespace SparkleLib {
|
||||||
_IsSyncing = false;
|
_IsSyncing = false;
|
||||||
_IsFetching = false;
|
_IsFetching = false;
|
||||||
|
|
||||||
_CurrentHash = GetCurrentCommit ();
|
_CurrentHash = GetCurrentHash ();
|
||||||
|
|
||||||
if (git.ExitCode != 0) {
|
if (git.ExitCode != 0) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue