◐ Shell
clean mode source ↗

alternates: allow relative paths in all repositories by vapier · Pull Request #7019 · libgit2/libgit2

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

ethomson

merged 1 commit into

libgit2:mainfrom

vapier:main

Jan 21, 2025

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

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vapier @ethomson