Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

push refs/replace fails with "remote rejected" and "(pre-receive hook declined"

Jürgen Bohn June 8, 2022

We have cloned a bare repo from some BitBucket repository,
modified it with filter-repo to get rid of some commits in the history,
and tried to push the result (git push --mirror). This fails.

Closer to the problem, the command: git push origin --force 'refs/replace/*'
fails. Output is like

! [remote rejected] refs/replace/fffde5e1ab13d1fcc288ef5f64bdbdf9701d21f2 -> refs/replace/fffde5e1ab13d1fcc288ef5f64bdbdf9701d21f2 (pre-receive hook declined)

Is this build-in behavior of BitBucket (release 7.17)?
Is it possible to deactivate this hook (that I did not find yet)?

Best regards,

 Jürgen

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events