From 880d0ec19f488001a90b3e370a992eaabac89e70 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Tue, 10 Mar 2020 22:15:55 +0800 Subject: api: overhaul `/repos/owner/repos/contents` (#5980) * Fix import path renaming * api: overhaul /repos/owner/repos/contents --- internal/gitutil/error.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/gitutil') 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 +} -- cgit v1.2.3