guix-commits
[Top][All Lists]
Advanced

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

13/40: scripts: git: Handle EPIPE errors when displaying help.


From: guix-commits
Subject: 13/40: scripts: git: Handle EPIPE errors when displaying help.
Date: Tue, 17 Oct 2023 08:54:39 -0400 (EDT)

zimoun pushed a commit to branch master
in repository guix.

commit cba0fa6f4ff5707ff5911ef312f8003ff090cf18
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Mon Oct 16 18:55:55 2023 +0200

    scripts: git: Handle EPIPE errors when displaying help.
    
    * 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 @@ Operate on Git repositories.\n"))
        (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"))



reply via email to

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