don't show bubble when committing yourself
This commit is contained in:
parent
881905d55f
commit
0e5583f7f1
|
@ -216,9 +216,6 @@ namespace SparkleShare {
|
||||||
Process.Start();
|
Process.Start();
|
||||||
Process.WaitForExit ();
|
Process.WaitForExit ();
|
||||||
Console.WriteLine ("[Git][" + Name + "] Changes commited.");
|
Console.WriteLine ("[Git][" + Name + "] Changes commited.");
|
||||||
ShowEventBubble (UserName + " " + Message,
|
|
||||||
SparkleHelpers.GetAvatar (UserEmail, 48),
|
|
||||||
true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetches changes from the remote repo
|
// Fetches changes from the remote repo
|
||||||
|
@ -247,7 +244,7 @@ namespace SparkleShare {
|
||||||
// Show notification if there are updates
|
// Show notification if there are updates
|
||||||
if (!Output.Equals ("Already up-to-date.")) {
|
if (!Output.Equals ("Already up-to-date.")) {
|
||||||
|
|
||||||
// Get the last commit message
|
// Get the last committer e-mail
|
||||||
Process.StartInfo.Arguments = "log --format=\"%ae\" -1";
|
Process.StartInfo.Arguments = "log --format=\"%ae\" -1";
|
||||||
Process.Start();
|
Process.Start();
|
||||||
string LastCommitEmail = Process.StandardOutput.ReadToEnd().Trim ();
|
string LastCommitEmail = Process.StandardOutput.ReadToEnd().Trim ();
|
||||||
|
|
Loading…
Reference in a new issue