scripts: git: Handle EPIPE errors when displaying help.
* guix/scripts/git.scm (%options): Handle EPIPE errors when displaying help.
This commit is contained in:
parent
330540b638
commit
cba0fa6f4f
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user