MCPcopy Create free account
hub / github.com/cli/cli / processExitCode

Function processExitCode

script/ghmock/gittransport.go:237–245  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

235}
236
237func processExitCode(err error) int {
238 if err == nil {
239 return 0
240 }
241 if exitErr, ok := errors.AsType[*exec.ExitError](err); ok {
242 return exitErr.ExitCode()
243 }
244 return -1
245}
246
247func gitRequests(scratch string, requests []loggedRequest) ([]loggedRequest, error) {
248 ssh, err := readJSONL[loggedRequest](filepath.Join(scratch, "git-ssh.jsonl"))

Callers 4

serveGitHTTPMethod · 0.85
cmdGitSSHFunction · 0.85
cmdGitFunction · 0.85
fakeGHFunction · 0.85

Calls 1

ExitCodeMethod · 0.65

Tested by 1

fakeGHFunction · 0.68