A new option named "skip_hooks" can be added to the config file (into the main section). It accepts boolean values and when the option is present and set, it prevents creating the pre-push hook script during cloning a dist-git repository.
Fixes: https://pagure.io/fedpkg/issue/515 JIRA: RHELCMP-11491
Signed-off-by: Ondrej Nosek onosek@redhat.com
pretty please pagure-ci rebuild
rebased onto 067b7f3b7b26d595ce479336eadee036e4a23f30
Looks good to me.
How about adding information about this option to the comment in the hook script itself? I don't know if people would expect it there, but there would IMO be no harm in mentioning it.
Looks good to me. How about adding information about this option to the comment in the hook script itself? I don't know if people would expect it there, but there would IMO be no harm in mentioning it.
Agree, it doesn't harm anything. Hopefully adding this option will not motivate users to use it on a large scale.
rebased onto 0aabe89e0ada8babdeefd51dab1c5cb4a19dcf86
rebased onto f1a56eaa835287488feecd707b6d2c0c7bcf8fe3
rebased onto 58c3d1533d366d5a82df4c2b9f4ff5de617a50ad
rebased onto b48eb502d330ec7a543805d7f185ea270df75b90
Pull-Request has been merged by onosek
A new option named "skip_hooks" can be added to the config file
(into the main section). It accepts boolean values and when
the option is present and set, it prevents creating the pre-push
hook script during cloning a dist-git repository.
Fixes: https://pagure.io/fedpkg/issue/515
JIRA: RHELCMP-11491
Signed-off-by: Ondrej Nosek onosek@redhat.com