Definitely getting this issue too. Just using the standard checkout step. It usually goes away if we rebase and force push or amend the commit and force push.
I feel that it might be related to the Update Branch feature on Github but, haven’t confirmed that.
Hitting this issue myself now. I don’t quite understand git’s object system, but on both a failed build server I ssh’d into and a fresh clone my local machine I get:
$ ls .git/objects
info pack
So it seems no objects exist? Well, there are definitely objects, git rev-list --objects --all returns lots, but git rev-list --objects --all | grep $CIRCLE_SHA1 returns nothing. (And for the record $CIRCLE_SHA is the same hash value from the fatal: Could not parse object [...] error.)
I’m having this issue as well. I’ve narrowed it down to using multiple slashes in my branch name. e.g. da/my-bug-fix works but da/bug-21/my-bug-fix does not.
@danny-andrews-snap@Did you remove the slashes from your branches to workaround this?
@Kevmo92 Does your workflow involve force-pushing? I wonder if you could outline what your specific workflow looks like - if you can produce a reproducible example, I expect CircleCI will bite your arm off.
@halfer I’ve seen this a few times today, both in projects that don’t use workflows.
Our branches do have a forward slash in the branch name, but we’ve only seen this pop up in the past 24 hours.
It’s not reproducible though. The only way to get around it is to rebuild without cache and hope that circleci is able to actually checkout the repo.
I’m opening a ticket up with their support team ¯\_(ツ)_/¯
Yes, sorry - I didn’t mean a CircleCI Workflow; I meant your general manner of using Git/Circle/branches/PRs etc. Perhaps there is some common behaviour that connects all of these cases.