aboutsummaryrefslogtreecommitdiff
path: root/internal/gitutil/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gitutil/error.go')
-rw-r--r--internal/gitutil/error.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/gitutil/error.go b/internal/gitutil/error.go
index 08575ec3..d8023f94 100644
--- a/internal/gitutil/error.go
+++ b/internal/gitutil/error.go
@@ -17,3 +17,8 @@ func IsErrRevisionNotExist(err error) bool {
func IsErrNoMergeBase(err error) bool {
return err == git.ErrNoMergeBase
}
+
+// IsErrSubmoduleNotExist returns true if the error is git.ErrSubmoduleNotExist.
+func IsErrSubmoduleNotExist(err error) bool {
+ return err == git.ErrSubmoduleNotExist
+}