-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the issue
I have a .gitattributes at the base of my repository with:
[attr]lfs filter=lfs diff=lfs merge=lfs -textAnd in a subfolder whose contents I want to be stored in git-lfs in their entirety, I have a .gitattributes file with:
* lfs
**/.git* !lfs
.git* !lfsI have a CI script that runs git fsck lfs to verify that its cache of the repository is okay. Lately, this has started outputting "pointer: unexpectedGitObject: "path/to/folder/.gitignore" (treeish ) should have been a pointer but was not"
This seems non-sensical to me. I have verified that this file does not show up in git lfs ls-files and also verified that the filter for that file is not set with git check-attr -a path/to/folder/.gitignore. Trying to do a git add --renormalize on that file also doesn't produce any changes.
Was there a recent change that may have caused this? At one point, that .gitignore file was stored in LFS erroneously, but that was corrected in 2018, and git lfs fsck has not reported any issues until recently.
System environment
I am able to see this in my local working copy on macOS as well as on my CI build environment. Standard operations (checkout/commit/etc) are not impacted by this, this only shows up when running an lfs fsck.
Output of git lfs env
$ git lfs env git:dev/v2022.10.x java:11
git-lfs/3.2.0 (GitHub; darwin amd64; go 1.18.2)
git version 2.37.0
Endpoint=<redacted>
LocalWorkingDir=<redacted>
LocalGitDir=<redacted>
LocalGitStorageDir=<redacted>
LocalMediaDir=<redacted>
LocalReferenceDirs=<redacted>
TempDir=<redacted>
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=<redacted>
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic,lfs-standalone-file,ssh
UploadTransfers=basic,lfs-standalone-file,ssh
GIT_EXEC_PATH=/usr/local/Cellar/git/2.37.0/libexec/git-core
git config filter.lfs.process = "git-lfs filter-process"
git config filter.lfs.smudge = "git-lfs smudge -- %f"
git config filter.lfs.clean = "git-lfs clean -- %f"