Hi,

Ludovic Courtès <[email protected]> writes:

> "Jodi Jodington (dev)" <[email protected]> skribis:
>
>> I then proceeded to
>> make a change and commit it locally
>> and then tried to push it to my fork. This resulted in an error
>> message about how my commit
>> isn't signed and blocked me from pushing.
>
> I realized that as soon as you run:
>
>   ./configure && make
>
> a new ‘pre-push’ hook is installed and that one does not run ‘guix git
> authenticate’ when pushing to an unofficial repository.

Indeed, I'm not sure I understand how Jodi got into that situation;
perhaps our checks are incorrect? But they look alright:

--8<---------------cut here---------------start------------->8---
                # Only perform checks when pushing to upstream.
                case "$2" in
                    *savannah.gnu.org*)
                        printf "ERROR: The repositories on Savannah are 
read-only mirrors of our repos at <https://codeberg.org/guix>.\n" 1>&2
                        exit 1
                        ;;
                    *.gnu.org*)
                        perform_checks
                        ;;
                    # HTTPS Git remote.
                    *codeberg.org/guix/*)
                        perform_checks
                        ;;
                    # SSH Git remote.
                    *codeberg.org:guix/*)
                        perform_checks
                        ;;
                    *)
                        exit 0
                        ;;
                esac
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim

Reply via email to