Skip to content
This repository
Browse code

Trim after running the regex

  • Loading branch information...
commit a8ee3a252a98d25835888a6f745d80f6099bf497 1 parent d879162
Sean M. Collins sc68cal authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 GitTfs/Commands/Rcheckin.cs
4 GitTfs/Commands/Rcheckin.cs
@@ -109,7 +109,7 @@ private int PerformRCheckin(TfsChangesetInfo parentChangeset)
109 109 string target = strs[0];
110 110 string[] gitParents = strs.AsEnumerable().Skip(1).Where(hash => hash != currentParent).ToArray();
111 111
112   - string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, currentParent).Trim(' ', '\r', '\n'));
  112 + string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, currentParent)).Trim(' ', '\r', '\n');
113 113 _stdout.WriteLine("Starting checkin of {0} '{1}'", target.Substring(0, 8), commitMessage);
114 114 _checkinOptions.CheckinComment = commitMessage;
115 115 long newChangesetId = tfsRemote.Checkin(target, currentParent, parentChangeset);
@@ -143,7 +143,7 @@ private int PerformRCheckin(TfsChangesetInfo parentChangeset)
143 143 string target = strs[0];
144 144 string[] gitParents = strs.AsEnumerable().Skip(1).Where(hash => hash != tfsLatest).ToArray();
145 145
146   - string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, tfsLatest).Trim(' ', '\r', '\n'));
  146 + string commitMessage = ProcessWorkItems(repo.GetCommitMessage(target, tfsLatest)).Trim(' ', '\r', '\n');
147 147 _stdout.WriteLine("Starting checkin of {0} '{1}'", target.Substring(0, 8), commitMessage);
148 148 _checkinOptions.CheckinComment = commitMessage;
149 149 long newChangesetId = tfsRemote.Checkin(target, parentChangeset);

0 comments on commit a8ee3a2

Please sign in to comment.
Something went wrong with that request. Please try again.