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

Remove file causing git-lfs error #7594

Merged
merged 1 commit into from
Dec 8, 2021
Merged

Conversation

lbergelson
Copy link
Member

Prevent a git lfs error that was caused by accidentally checking storing a .gitattributes file
in gitlfs.

When checkout out the repository for the first time or moving from an old commit to a newish one, there's been an error report from git lfs. This was caused by accidentally checking a .gitattributes file into git-lfs which then is read as part of the git lfs checkout process, but since the file is tracked by lfs at the point of checkout it is an lfs stub and throws an error.

The problem was introduced here: #6694

See below to reproduce:

git checkout 9951f77c6
git checkout f548ccd708009ddcdfead6525edd23a68d73027b
https://git-lfs.github.com/spec/v1 is not a valid attribute name: src/test/resources/large/mitochondria_references/.gitattributes:1
sha256:cb156adb10b491dd3ba88c2b491bfb021b3c94fc956d36310c67492504fcdc58 is not a valid attribute name: src/test/resources/large/mitochondria_references/.gitattributes:2
Updating files: 100% (363/363), done.
Note: switching to 'f548ccd708009ddcdfead6525edd23a68d73027b'.

This fixes the problem going forward by removing the file.

Prevent a git lfs error that was caused by accidentally checking storing a .gitattributes file
in gitlfs.
@lbergelson lbergelson merged commit 606a7cf into master Dec 8, 2021
@lbergelson lbergelson deleted the lb_fix_lfs_complaint branch December 8, 2021 20:45
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.

2 participants