cli/pkg
Tyler McGoffin e1423cdbbf Refine error handling of ReadBranchConfig
cmd.Output() will return an error when the git command ran successfully
but had no output. To handle this, we can check Stderr, as we expect it to
be populated for any ExitErrors or otherwise when there is a command
failure.

This allows for propagation of this error handling up the call chain, so
we are now returning errors if the call to git fails instead of just
handing off an empty BranchConfig and suppressing the errors.

Additionally, I've removed some more naked returns that I found in
pkg/cmd/pr/create.go createRun
2025-01-09 11:45:15 -08:00
..
cmd Refine error handling of ReadBranchConfig 2025-01-09 11:45:15 -08:00
cmdutil Fix repo fork to use remote protocol if none configured 2024-05-10 10:48:36 +02:00
extensions gh extension install not give an error if extension already installed and a clear message (#8211) 2023-10-19 15:22:21 +02:00
findsh go fmt 2021-12-02 16:12:24 +01:00
githubtemplate Add issue create --editor 2024-07-09 21:01:50 +09:00
httpmock ScopesResponder wraps StatusScopesResponder 2024-11-23 13:19:45 -07:00
iostreams Print filtered gists similar to code search 2024-10-12 23:17:56 -07:00
jsoncolor Wrap JSON arrays, objects in array with --slurp 2024-04-04 01:26:05 -07:00
jsonfieldstest Add tests for JSON field support on issue and pr view commands 2024-07-12 17:35:54 +02:00
markdown Allow user to override markdown wrap width via $GH_MDWIDTH from environment 2024-10-04 17:43:06 -07:00
option Add further docs to Option type 2024-05-10 11:05:59 +02:00
search Add json export flags to variable list command (#8516) 2024-01-17 10:09:09 -08:00
set Add GH_HOST to hosts list if it has corresponding auth token (#5087) 2022-01-29 07:37:24 +00:00
ssh Minor nit suggestion 2024-11-06 16:12:55 -05:00
surveyext Unify use of tab indent in non-test source files 2024-08-03 00:35:30 +08:00