Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test git-annex symlink-based repos #15

Closed
kousu opened this issue Aug 19, 2022 · 1 comment
Closed

Test git-annex symlink-based repos #15

kousu opened this issue Aug 19, 2022 · 1 comment

Comments

@kousu
Copy link
Member

kousu commented Aug 19, 2022

git-annex's original design stored symlinks for all its annexed files, but recently they started defaulting to "unlocked" files -- meaning, files having their full contents on disk in place -- by adding a .gitattributes file that sets up git-annex smudge as a git filter. But there are cases where symlinks still show up -- all repos on https://github.com/OpenNeuroDatasets for example, or if you git annex init and git-annex decides your filesystem is "crippled" (i.e. doesn't have symlinks)). See https://git-annex.branchable.com/tips/unlocked_files/ and even https://git-annex.branchable.com/git-annex-adjust/ for more).

The current tests test for the "unlocked" case:

f, err := os.Create(path.Join(repoPath, ".gitattributes"))
if err != nil {
return err
}
_, err = f.WriteString("* annex.largefiles=nothing")
if err != nil {
return err
}
_, err = f.WriteString("*.bin filter=annex annex.largefiles=anything")
if err != nil {
return err
}
f.Close()

We should test the "locked" case as well.

@kousu
Copy link
Member Author

kousu commented Nov 27, 2022

This was covered in #20

@kousu kousu closed this as completed Nov 27, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant