For some reason our CI on pull requests started failing a week ago with errors like:
Checkout failed, error: fatal: reference is not a tree: fd05265db8b684e17caf17e57d61fa700b93da76
When I reproduce the build steps locally, I do get the same error. It looks like the git recipe isn’t pulling down all the ref’s from the origin, and the pull request isn’t included. As far as I can tell we’re using a fairly default configuration on the recipe.
Example build:
https://www.bitrise.io/build/5b5f073fca34c0bc
Pull request url:
https://github.com/openid/AppAuth-iOS/pull/87
Commit hash:
fd05265db8b684e17caf17e57d61fa700b93da76
Git clone repository
=> git "init"
=> git "remote" "add" "origin" "git@github.com:openid/AppAuth-iOS.git"
=> git "fetch"
=> git "checkout" "fd05265db8b684e17caf17e57d61fa700b93da76"
Checkout failed, error: fatal: reference is not a tree: fd05265db8b684e17caf17e57d61fa700b93da76