Skip to content

fix: remove .git suffix from Sourcehut https URLs#326

Merged
owlstronaut merged 1 commit intonpm:mainfrom
yetval:fix/sourcehut-https-url-no-git-suffix
Apr 13, 2026
Merged

fix: remove .git suffix from Sourcehut https URLs#326
owlstronaut merged 1 commit intonpm:mainfrom
yetval:fix/sourcehut-https-url-no-git-suffix

Conversation

@yetval
Copy link
Copy Markdown
Contributor

@yetval yetval commented Apr 3, 2026

Sourcehut 404s on HTTPS URLs ending in .git (unlike GitHub/GitLab/Bitbucket), so httpstemplate was producing invalid clone URLs.

Fixes npm/cli#9174

@louwers
Copy link
Copy Markdown

louwers commented Apr 3, 2026

Thanks!

@louwers
Copy link
Copy Markdown

louwers commented Apr 3, 2026

LGTM

@owlstronaut owlstronaut self-assigned this Apr 13, 2026
@owlstronaut owlstronaut merged commit eca53e7 into npm:main Apr 13, 2026
18 of 20 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 13, 2026
@yetval yetval deleted the fix/sourcehut-https-url-no-git-suffix branch April 14, 2026 18:03
owlstronaut pushed a commit that referenced this pull request May 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[9.0.3](v9.0.2...v9.0.3)
(2026-05-01)
### Bug Fixes
*
[`ac3c890`](ac3c890)
[#327](#327) use GitLab API
v4 endpoint for tarball URLs (@304)
*
[`eca53e7`](eca53e7)
[#326](#326) remove .git
suffix from Sourcehut https URLs (#326) (@yetval)
### Chores
*
[`4c8d2d4`](4c8d2d4)
[#329](#329)
template-oss-apply (@owlstronaut)
*
[`c816377`](c816377)
[#329](#329)
`@npmcli/[email protected]` (@owlstronaut)
*
[`4862744`](4862744)
[#324](#324) explicit sha-1
and sha-256 git committish tests (#324) (@wraithgar)
*
[`8a1b486`](8a1b486)
[#322](#322) remove tap
(@owlstronaut)
*
[`e88c758`](e88c758)
[#322](#322) swap from tap to
built-in node:test (@owlstronaut)
*
[`d542a55`](d542a55)
[#319](#319) bump
@npmcli/eslint-config from 5.1.0 to 6.0.0 (#319) (@dependabot[bot])
*
[`0cd1a4d`](0cd1a4d)
[#321](#321) bump
@npmcli/template-oss from 4.28.0 to 4.28.1 (#321) (@dependabot[bot],
@npm-cli-bot)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

[BUG] repository URL normalization breaks non GitHub URLs

3 participants