cli/git
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
..
fixtures Refactor code to live inside default pkg 2022-05-18 08:40:30 +02:00
client.go Refine error handling of ReadBranchConfig 2025-01-09 11:45:15 -08:00
client_test.go Refine error handling of ReadBranchConfig 2025-01-09 11:45:15 -08:00
command.go Allow client push to use insecure credential pattern 2024-11-26 22:29:58 +01:00
errors.go Refactor git client and add tests (#6525) 2022-11-03 11:58:38 +01:00
objects.go Move trackingRef into pr create package 2025-01-06 10:33:28 -06:00
url.go Merge pull request #8929 from cli/wm/parse-url-no-nakaed-return 2024-04-05 16:33:09 +02:00
url_test.go Merge pull request #8929 from cli/wm/parse-url-no-nakaed-return 2024-04-05 16:33:09 +02:00