fix: resolve the remote URI using url.*.insteadOf by sudoforge · Pull Request #1394 · git-bug/git-bug

@sudoforge enabled auto-merge

April 29, 2025 23:37

auto-merge was automatically disabled

April 30, 2025 00:50

Pull request was converted to draft

@sudoforge sudoforge changed the title fix: use the git cli to resolve remote URIs fix: resolve the remote URI using url.*.insteadOf

Apr 30, 2025

@sudoforge sudoforge marked this pull request as ready for review

April 30, 2025 05:14

@sudoforge

This change introduces a new method for resolving the URI for a given
remote (by name), ensuring that the URI is rewritten following the rules
defined in `url.*.insteadOf` configuration.

When `go-git@69aefb67315d775bf73df836b1e3ba5a3b321198` lands in a
release (and we update go-git to that release), this should be
refactored to use `config.URL.InsteadOfs()`, which supports multiple
`url.*.insteadOf` configuration blocks instead of the current limitation
of always taking the last definition.

Closes: #944
Change-Id: Iffd111a1f4c42eff12613dcbd1b0d27df415f5e8

@sudoforge sudoforge deleted the Iffd111a1f4c42eff12613dcbd1b0d27df415f5e8 branch

April 30, 2025 14:36