MCPcopy Create free account
hub / github.com/gogs/gogs / IsErrSubmoduleNotExist

Function IsErrSubmoduleNotExist

internal/gitutil/error.go:29–31  ·  view source on GitHub ↗

IsErrSubmoduleNotExist returns true if the underlying error is git.ErrSubmoduleNotExist.

(err error)

Source from the content-addressed store, hash-verified

27// IsErrSubmoduleNotExist returns true if the underlying error is
28// git.ErrSubmoduleNotExist.
29func IsErrSubmoduleNotExist(err error) bool {
30 return errors.Cause(err) == git.ErrSubmoduleNotExist
31}
32
33// IsErrRevisionNotExist returns true if the underlying error is
34// git.ErrRevisionNotExist.

Callers 1

NotFoundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected