#3367 I need to set receive.denyNonFastforwards to false on my fh.grid repo
Closed: Fixed None Opened 11 years ago by tstclair.

= phenomenon =
git push -f origin +V7_8-build-branch:master
Total 0 (delta 0), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://git.fedorahosted.org/git/grid.git
! [remote rejected] V7_8-build-branch -> master (non-fast-forward)

= reason =
receive.denyNonFastforwards is true

= recommendation =

set it to false.


Public repos should generally deny non-fast-forward changes. Otherwise everyone else who has a clone of your repo will be upset. What do you need to use a non-fast-forward push here for?

I only need it for a short window to reset the master branch as can be seen above.

ref: http://infrastructure.fedoraproject.org/infra/docs/fedorahosted.txt

"To enable this temporarily, edit the config file inside of the git repo,
and make sure that receive.denyNonFastforwards is set to false. Make sure
to reenable this once the user has finished their push."

it is now set to allow fast forwards. please let us know when you've finished your push so we can set it back.

thanks

Replying to [comment:5 skvidal]:

it is now set to allow fast forwards. please let us know when you've finished your push so we can set it back.

thanks

It's done, thanks.

repo is now set back to deny fastforwards.

Login to comment on this ticket.

Metadata