diff options
author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-05-25 17:20:36 +0200 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2025-05-26 10:41:05 +0800 |
commit | be0dbd3e4aaf3f4127ee7ee92de20a52f5fd499a (patch) | |
tree | ce9b39a7ba0eebfe8a73888adc2695ad85146e8e | |
parent | 85891910603a9369f47ac0e127f8f03c46160cc1 (diff) |
etc: pre-push: Skip checks on AGit pull requests.
* etc/git/pre-push (case "$remote_refs" in refs/for/*): Skip checks.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Fixes: AGit push fails <https://codeberg.org/guix/guix/issues/5>
Tested-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
-rwxr-xr-x | etc/git/pre-push | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/git/pre-push b/etc/git/pre-push index 400095591c..3ec451fdfd 100755 --- a/etc/git/pre-push +++ b/etc/git/pre-push @@ -29,6 +29,13 @@ do # thus there are no signatures to be verified. if [ "$local_hash" != $z40 ] then + # Skip the hook when performing a pull-request. + case "$remote_ref" in + refs/for/*) + exit 0 + ;; + esac + # Only use the hook when pushing to upstream. case "$2" in *.gnu.org*) ;& |