Can't push new image builds. "[remote rejected] build -> resin_emulated (hook declined)"

Hey there,

So, 2 months ago I could create a new image via our build server.

Now (after the Resin->Balena change) our build breaks.

 remote: error: hook declined to update refs/heads/resin-emulated        
 To git.resin.io:openrov_resin/rovimageresindev.git
  ! [remote rejected] build -> resin-emulated (hook declined)
 error: failed to push some refs to 'openrov_resin@git.resin.io:openrov_resin/rovimageresindev.git'

If I try to check out this repo I get:

git clone --depth=1 openrov_resin@git.resin.io:openrov_resin/rovimageresindev.git
Cloning into 'rovimageresindev'...
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Any idea about this?

Hi, it’s not certain, but it looks like this is probably caused by rewritten history. If you force push to the repo (git push --force ...), is the push then successful?