diff mbox series

[bug#66499,v2,13/39] scripts: git: Handle EPIPE errors when displaying help.

Message ID 6dcf4dedbdd1373891444c7e5f70e5e38dd2c68b.1697475790.git.zimon.toutoune@gmail.com
State New
Headers show
Series [bug#66499,v2,01/39] ui: Handle EPIPE errors when displaying Guix version. | expand

Commit Message

Simon Tournier Oct. 16, 2023, 5:29 p.m. UTC
* guix/scripts/git.scm (%options): Handle EPIPE errors when displaying help.
---
 guix/scripts/git.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/guix/scripts/git.scm b/guix/scripts/git.scm
index 4436d8a6e0..abbad076cd 100644
--- a/guix/scripts/git.scm
+++ b/guix/scripts/git.scm
@@ -56,7 +56,7 @@  (define-command (guix-git . args)
        (format (current-error-port)
                (G_ "guix git: missing sub-command~%")))
       ((or ("-h") ("--help"))
-       (show-help)
+       (leave-on-EPIPE (show-help))
        (exit 0))
       ((or ("-V") ("--version"))
        (show-version-and-exit "guix git"))