Open miltalex opened 4 years ago
Are you using a shallow clone? If so shallow clones are broken (https://github.com/src-d/go-git/issues/1143). Even without shallow cloning, this can still happen on occasion. This appears related to https://github.com/src-d/go-git/issues/1151. Here's my error handling:
// plumbing.ErrObjectNotFound is a work around for https://github.com/src-d/go-git/issues/1151
if err != nil && err != git.NoErrAlreadyUpToDate && err != plumbing.ErrObjectNotFound {
return err
}
I hope this helps.
Hi,
I get the
Error: object not found
when I try to git pull from a tag:Any help appreciated.