IsErrSubmoduleNotExist returns true if the underlying error is git.ErrSubmoduleNotExist.
(err error)
| 27 | // IsErrSubmoduleNotExist returns true if the underlying error is |
| 28 | // git.ErrSubmoduleNotExist. |
| 29 | func 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. |