Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

storage/filesystem: dotgit, could not get blob from packfiles #1149

Open
vvatanabe opened this issue May 16, 2019 · 1 comment
Open

storage/filesystem: dotgit, could not get blob from packfiles #1149

vvatanabe opened this issue May 16, 2019 · 1 comment

Comments

@vvatanabe
Copy link

Could not get blob from packfiles, occurs a error packfile not found.

The cause is an unnecessary temporary file parsing error generated by git gc.

We should correctly check the packfile name format and skip over not loading those temporary files,

name format of temporary file:
.tmp-12345-pack-{hash}.pack

I have a PR.

@filipnavara
Copy link
Contributor

I have run into multiple instances where something like that happens. It seems that regular GIT sometimes produces and consumes a objects/info/packs file with a list of actively used packfiles. Often I have some more pack files in objects/pack that were not cleaned during previous repacking.

vvatanabe added a commit to nulab/go-git that referenced this issue May 17, 2019
…-d#1149

Signed-off-by: Yuichi Watanabe <yuichi.watanabe.ja@gmail.com>
vvatanabe added a commit to nulab/go-git that referenced this issue May 17, 2019
…-d#1149

Signed-off-by: Yuichi Watanabe <yuichi.watanabe.ja@gmail.com>
vvatanabe added a commit to nulab/go-git that referenced this issue May 17, 2019
…rc-d#1149

Signed-off-by: Yuichi Watanabe <yuichi.watanabe.ja@gmail.com>
vvatanabe added a commit to nulab/go-git that referenced this issue May 17, 2019
…e prefix and suffix. Fixes src-d#1149

Signed-off-by: Yuichi Watanabe <yuichi.watanabe.ja@gmail.com>
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

2 participants