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 /etc | |
| 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>
Diffstat (limited to 'etc')
| -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 400095591cd..3ec451fdfd3 100755 --- a/etc/git/pre-push +++ b/etc/git/pre-push | |||
| @@ -29,6 +29,13 @@ do | |||
| 29 | # thus there are no signatures to be verified. | 29 | # thus there are no signatures to be verified. |
| 30 | if [ "$local_hash" != $z40 ] | 30 | if [ "$local_hash" != $z40 ] |
| 31 | then | 31 | then |
| 32 | # Skip the hook when performing a pull-request. | ||
| 33 | case "$remote_ref" in | ||
| 34 | refs/for/*) | ||
| 35 | exit 0 | ||
| 36 | ;; | ||
| 37 | esac | ||
| 38 | |||
| 32 | # Only use the hook when pushing to upstream. | 39 | # Only use the hook when pushing to upstream. |
| 33 | case "$2" in | 40 | case "$2" in |
| 34 | *.gnu.org*) ;& | 41 | *.gnu.org*) ;& |
