api: overhaul /repos/owner/repos/contents (#5980)

* Fix import path renaming

* api: overhaul /repos/owner/repos/contents
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-03-10 22:15:55 +08:00
committed by GitHub
parent 2430612ad4
commit 880d0ec19f
4 changed files with 232 additions and 243 deletions

View File

@@ -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
}