Skip to content

fix(gitbrowse): dont prepend a second scheme to plain http remotes - #2955

Open
meleu wants to merge 1 commit into
folke:mainfrom
meleu:fix/gitbrose-http-remote
Open

fix(gitbrowse): dont prepend a second scheme to plain http remotes#2955
meleu wants to merge 1 commit into
folke:mainfrom
meleu:fix/gitbrose-http-remote

Conversation

@meleu

@meleu meleu commented Sep 10, 2026

Copy link
Copy Markdown

Description

A simple fix for the bug reported in #2954 (also a couple of test cases validating the intended behavior).

The problem happens when a remote is served over plain http:// (e.g.: self-hosted GitLab behind a corporate network). When that happens gitbrowse prepends a second scheme to the URL:

remote: http://git.example.com/group/subgroup/repo.git
result: https://http://git.example.com/group/subgroup/repo

Related Issue(s)

closes #2954

@github-actions github-actions Bot added gitbrowse size/s Small PR (<10 lines changed) labels Sep 10, 2026
@meleu meleu changed the title 'fix(gitbrowse): dont prepend a second scheme to plain http remotes fix(gitbrowse): dont prepend a second scheme to plain http remotes Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gitbrowse size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: gitbrowse prepends a second scheme to http:// remotes

1 participant