From 69b6aeaa1a4e780f573d1e938b7194594136a525 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 21 Jun 2018 09:10:16 +0100 Subject: [PATCH] repo git: Pass commit message by file based on work by Emil Velikov (#1852) --- Sparkles/Git/Git.Repository.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Sparkles/Git/Git.Repository.cs b/Sparkles/Git/Git.Repository.cs index 5d432fa5..2588d824 100644 --- a/Sparkles/Git/Git.Repository.cs +++ b/Sparkles/Git/Git.Repository.cs @@ -393,17 +393,15 @@ namespace Sparkles.Git { File.WriteAllText (message_file_path, message); // Commit from message stored in temporary file to avoid special character conflicts on the command line - git_commit = new GitCommand (LocalPath, - string.Format ("commit --all --file=\"{0}\" --author=\"{1} <{2}>\"", - message_file_path, user_name, user_email)); + git_commit = new GitCommand (LocalPath, string.Format ("commit --all --file=\"{0}\" --author=\"{1} <{2}>\"", + message_file_path, user_name, user_email)); } catch (IOException e) { Logger.LogInfo ("Git", Name + " | Could not create commit message file: " + message_file_path, e); // If committing with a temporary file fails, use a simple static commit message - git_commit = new GitCommand (LocalPath, - string.Format ("commit --all --message=\"{0}\" --author=\"{1} <{2}>\"", - "Changes by SparkleShare", user_name, user_email)); + git_commit = new GitCommand (LocalPath, string.Format ("commit --all --message=\"{0}\" --author=\"{1} <{2}>\"", + "Changes by SparkleShare", user_name, user_email)); } git_commit.StartAndReadStandardOutput ();