Remove unused ErrNoGitRepository error
This commit is contained in:
parent
601cf88852
commit
e428b9c66c
3 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue