guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#66499] [PATCH v2 13/39] scripts: git: Handle EPIPE errors when disp


From: Simon Tournier
Subject: [bug#66499] [PATCH v2 13/39] scripts: git: Handle EPIPE errors when displaying help.
Date: Mon, 16 Oct 2023 19:29:31 +0200

* guix/scripts/git.scm (%options): Handle EPIPE errors when displaying help.
---
 guix/scripts/git.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"))
-- 
2.38.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]