From f3aca9da0ae84c4861b8b2af954c9c17ff21d942 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 10 Jun 2011 21:40:13 +0100 Subject: [PATCH] repo git: strip quotes from git commit message --- SparkleLib/Git/SparkleRepoGit.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 0df0877c..382f6f21 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -198,7 +198,7 @@ namespace SparkleLib { if (!AnyDifferences) return; - SparkleGit git = new SparkleGit (LocalPath, "commit -m '" + message + "'"); + SparkleGit git = new SparkleGit (LocalPath, "commit -m \"" + message + "\""); git.Start (); git.WaitForExit (); @@ -530,6 +530,7 @@ namespace SparkleLib { return message + "..." + n; } + message = message.Replace ("\"", ""); return message.TrimEnd (); }