Skip to content

refs: traverse symlinked directories - #4455

Merged
ethomson merged 3 commits into
masterfrom
ethomson/branch_symlinks
Dec 30, 2017
Merged

refs: traverse symlinked directories#4455
ethomson merged 3 commits into
masterfrom
ethomson/branch_symlinks

Conversation

@ethomson

Copy link
Copy Markdown
Member

When enumerating the references in the loose refs storage area, we should traverse symlinked directories. eg, if I create refs/heads/foo -> /tmp/refs, and create a loose ref /tmp/refs/asdf, then I should be able to resolve refs/heads/foo/asdf.

This is @doanac's change in #4388, with some minor cleanups for error checking and adding a test to easily validate this locally. I'm opening a PR to put it through the paces on the CI machines.

Andy Doan and others added 3 commits December 29, 2017 23:53
 Native Git allows symlinked directories under .git/refs. This
 change allows libgit2 to also look for references that live under
 symlinked directories.

Signed-off-by: Andy Doan <andy@opensourcefoundries.com>
Perform some error checking when examining symlink directories.
Ensure that we can recurse into directories via symbolic links.
@doanac

doanac commented Dec 31, 2017

Copy link
Copy Markdown

thanks for the Chistmas gift!

@pks-t

pks-t commented Jan 3, 2018

Copy link
Copy Markdown
Member

Cool 👍 I like the test in particular

@pks-t pks-t added the backport label Jan 11, 2018
@pks-t pks-t mentioned this pull request Jan 12, 2018
@pks-t pks-t removed the backport label Jan 18, 2018
@ethomson
ethomson deleted the ethomson/branch_symlinks branch January 9, 2019 10:16
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.

3 participants