diff --git a/internal/gitfs/git.go b/internal/gitfs/git.go index 06325b26..7cf1c5c0 100644 --- a/internal/gitfs/git.go +++ b/internal/gitfs/git.go @@ -41,6 +41,7 @@ func (r *Repo) handshake() error { if err != nil { return fmt.Errorf("handshake: %v", err) } + defer resp.Body.Close() data, err := io.ReadAll(resp.Body) if resp.StatusCode != 200 { return fmt.Errorf("handshake: %v\n%s", resp.Status, data)