From f709de7c385ccd6a1eae3c6364adf6ab0f4cbfbf Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 29 Apr 2010 12:49:48 +0100 Subject: [PATCH] Fix escaping in commit message --- src/SparklePony.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/SparklePony.cs b/src/SparklePony.cs index 8a4986a0..9aed85a9 100644 --- a/src/SparklePony.cs +++ b/src/SparklePony.cs @@ -155,7 +155,11 @@ public class SparklePonyStatusIcon : StatusIcon { public SparklePonyStatusIcon () : base () { IconName = "folder-remote"; - // Activate += delegate (object o, EventArgs args) { SetSyncingState (); }; + Notification Notification = new Notification ("herro", ""); + Notification.StatusIcon = this; + Notification.Urgency = Urgency.Normal; + Notification.Timeout = 3500; + Notification.Show (); } public void SetIdleState () { @@ -334,7 +338,8 @@ public class Repository { public void Commit (string Message) { Console.WriteLine ("[Commit] " + Message); Console.WriteLine ("[Git] Commiting changes..."); - Process.StartInfo.Arguments = "commit -m '" + Message + "'"; + Process.StartInfo.Arguments = "commit -m \"" + Message + "\""; + Console.WriteLine ("commit -m '" + Message + "'"); Process.Start(); }