Remove unused ErrNoGitRepository error

This commit is contained in:
Tyler McGoffin 2025-01-31 14:49:38 -08:00
parent 601cf88852
commit e428b9c66c
3 changed files with 9 additions and 9 deletions

View file

@ -6,7 +6,6 @@ import (
"errors"
"io"
"os/exec"
"strings"
"github.com/cli/cli/v2/internal/run"
)
@ -49,10 +48,6 @@ func (gc *Command) Output() ([]byte, error) {
ge.Stderr = string(exitError.Stderr)
ge.ExitCode = exitError.ExitCode()
}
if strings.Contains(ge.Stderr, "fatal: not a git repository") {
ge.err = ErrNoGitRepository
}
err = &ge
}
return out, err