Skip to content

fix: only strip optional '.git' suffix from https server remote name and not 'Xgit'#1257

Merged
peter-evans merged 1 commit into
peter-evans:mainfrom
campersau:striponly.git
Sep 28, 2022
Merged

fix: only strip optional '.git' suffix from https server remote name and not 'Xgit'#1257
peter-evans merged 1 commit into
peter-evans:mainfrom
campersau:striponly.git

Conversation

@campersau

Copy link
Copy Markdown
Contributor

By escaping the . in the regex.

I think the bug got introduced by #1153

Fixes #1256

@peter-evans

peter-evans commented Sep 28, 2022

Copy link
Copy Markdown
Owner

/test repository=campersau/create-pull-request ref=striponly.git build=true

Command run output

@peter-evans

Copy link
Copy Markdown
Owner

Thank you for this fix!

@peter-evans peter-evans merged commit ddab646 into peter-evans:main Sep 28, 2022
@campersau campersau deleted the striponly.git branch September 28, 2022 04:05
aleksandrychev pushed a commit to aleksandrychev/create-pull-request that referenced this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Pull Request does not work when repository name ends in Xgit

2 participants