Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6934e3f

Browse files
committed
Trim trailing hypens from generated branch name.
1 parent c50cb5d commit 6934e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/Services/PullRequestService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void EnsurePullRefSpecExists(IRepository repo)
210210

211211
static string GetSafeBranchName(string name)
212212
{
213-
var before = InvalidBranchCharsRegex.Replace(name, "-");
213+
var before = InvalidBranchCharsRegex.Replace(name, "-").TrimEnd('-');
214214

215215
for (;;)
216216
{

0 commit comments

Comments
 (0)