When I try to force-push, I get this error:
remote: Forced pushes are not allowed remote: Denied push for ref 'refs/heads/pcahyna-test' for user 'pcahyna' remote: All changes have been rejected To ssh://pkgs.fedoraproject.org/rpms/linux-system-roles.git ! [remote rejected] pcahyna-test -> pcahyna-test (pre-receive hook declined) error: failed to push some refs to 'ssh://pkgs.fedoraproject.org/rpms/linux-system-roles.git'
I saw that there was a change to allow per branch force-push authorization - #793 . I have the hook "Block non fast-forward pushes" unchecked in https://src.fedoraproject.org/rpms/linux-system-roles/settings#hooks-tab and pushes are still not allowed. I suppose this is a bug, because if force-pushes are intended to be always disabled, what is the purpose of that hook?
Force pushes are indeed always block on src.fp.o and this is specific to that pagure instance, it's not a pagure (the upstream project) bug per say
Thanks for the explanation. Is there a proper place to report it for src.fp.o, or is it intentional and not worth opening an issue?
It is intentional for src.fp.o to block force-push, we do not want to re-write history for audibility purposes (we need to be able to track down how were done each builds)
Works as designed, behavior is limited to src.fp.o and the specific requirements of this instance, 'force-pushes' are in general allowed in pagure.
Metadata Update from @wombelix: - Issue close_status updated to: Won't Fix - Issue status updated to: Closed (was: Open)