Skip to content

Commit

Permalink
Fix git zombie process
Browse files Browse the repository at this point in the history
  • Loading branch information
thomiceli committed Apr 20, 2023
1 parent fddc50e commit 14dac70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/git/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func GetFileContent(user string, gist string, revision string, filename string,
if err != nil {
return "", false, err
}
defer cmd.Wait()

return truncateCommandOutput(stdout, maxBytes)
}
Expand Down Expand Up @@ -126,6 +127,7 @@ func GetLog(user string, gist string, skip int) ([]*Commit, error) {
if err != nil {
return nil, err
}
defer cmd.Wait()

return parseLog(stdout, 2<<18), nil
}
Expand Down

0 comments on commit 14dac70

Please sign in to comment.