🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

alternates: allow relative paths in all repositories - #7019

Merged
ethomson merged 1 commit into
libgit2:mainfrom
vapier:main
Jan 21, 2025
Merged

alternates: allow relative paths in all repositories#7019
ethomson merged 1 commit into
libgit2:mainfrom
vapier:main

Conversation

@vapier

@vapier vapier commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

Git does not limit relative paths in alternates to the first repository, so libgit2 shouldn't either.

Git does not limit relative paths in alternates to the first
repository, so libgit2 shouldn't either.
@vapier

vapier commented Jan 16, 2025

Copy link
Copy Markdown
Contributor Author

The code has behaved this way since it was originally merged in 85e7efa1630855c5c8bd9893f732494bda51b591 in PR #719. I can't see an explanation as to why the code decided to only load relative links for the current repo in either place. Maybe git itself used to behave this way, but current versions definitely do not.

FWIW we hit this in CrOS with details in https://issuetracker.google.com/214563046, although it's not terribly interesting tbh.

@ethomson

Copy link
Copy Markdown
Member

Indeed; I'm not sure either, but it looks like your analysis is correct. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants