diff options
| -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*) ;& |
