~ruther/guix-local

8a82b6b9c1c90885a069cf9422e9ea0468344b08 — Maxim Cournoyer 1 year, 3 months ago 52bc919
etc: pre-push: Skip checks when pushing to the keyring branch.

Attempting to push new commits to the branch would previously fail like:

  error: commit X is not a descendant of introductory commit
  1m9edb3f66fd807b096b48283debdcddccfea34bad

* etc/git/pre-push (main): Skip checks when pushing to refs/heads/keyring.

Change-Id: I3ea20a10b6c8cc6b6c6f948f80bed902850214c5
1 files changed, 7 insertions(+), 1 deletions(-)

M etc/git/pre-push
M etc/git/pre-push => etc/git/pre-push +7 -1
@@ 38,11 38,17 @@ do
	# and thus there are no signatures or news updates to be verified.
        if [ "$local_hash" != $z40 ]
        then
                # Skip the hook when performing a pull-request.
                # Skip the hook when performing a pull-request...
                case "$remote_ref" in
                    refs/for/*)
                        exit 0
                        ;;
                    # ... or when pushing a new PGP key to the keyring branch,
                    # as this branch doesn't share ancestry with the master
                    # branch and fails the 'guix git authenticate' check.
                    refs/heads/keyring)
                        exit 0
                        ;;
                esac

		# Only perform checks when pushing to upstream.