Permalink
Browse files

Trim after running the regex

  • Loading branch information...
1 parent d879162 commit a8ee3a252a98d25835888a6f745d80f6099bf497 @sc68cal sc68cal committed Feb 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 GitTfs/Commands/Rcheckin.cs
View
4 GitTfs/Commands/Rcheckin.cs
@@ -109,7 +109,7 @@ private int PerformRCheckin(TfsChangesetInfo parentChangeset)
string target = strs[0];
string[] gitParents = strs.AsEnumerable().Skip(1).Where(hash => hash != currentParent).ToArray();
- string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, currentParent).Trim(' ', '\r', '\n'));
+ string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, currentParent)).Trim(' ', '\r', '\n');
_stdout.WriteLine("Starting checkin of {0} '{1}'", target.Substring(0, 8), commitMessage);
_checkinOptions.CheckinComment = commitMessage;
long newChangesetId = tfsRemote.Checkin(target, currentParent, parentChangeset);
@@ -143,7 +143,7 @@ private int PerformRCheckin(TfsChangesetInfo parentChangeset)
string target = strs[0];
string[] gitParents = strs.AsEnumerable().Skip(1).Where(hash => hash != tfsLatest).ToArray();
- string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, tfsLatest).Trim(' ', '\r', '\n'));
+ string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, tfsLatest)).Trim(' ', '\r', '\n');
_stdout.WriteLine("Starting checkin of {0} '{1}'", target.Substring(0, 8), commitMessage);
_checkinOptions.CheckinComment = commitMessage;
long newChangesetId = tfsRemote.Checkin(target, parentChangeset);

0 comments on commit a8ee3a2

Please sign in to comment.