(err error)
| 235 | } |
| 236 | |
| 237 | func 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 | |
| 247 | func gitRequests(scratch string, requests []loggedRequest) ([]loggedRequest, error) { |
| 248 | ssh, err := readJSONL[loggedRequest](filepath.Join(scratch, "git-ssh.jsonl")) |