Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e81bd9a

Browse files
committed
Split the commit message into the subject line and the body
1 parent abd2566 commit e81bd9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/GitHub.Api/Git/Tasks/GitCommitTask.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ public GitCommitTask(string message, string body,
1616

1717
Name = TaskName;
1818
arguments = "commit ";
19-
arguments += String.Format(" -m \"{0}", message);
19+
arguments += String.Format(" -m \"{0}\"", message);
2020
if (!String.IsNullOrEmpty(body))
21-
arguments += String.Format("{0}{1}", Environment.NewLine, body);
22-
arguments += "\"";
21+
arguments += String.Format(" -m \"{0}\"", body);
2322
}
2423

2524
public override string ProcessArguments { get { return arguments; } }

0 commit comments

Comments
 (0)