mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
api: overhaul /repos/owner/repos/contents (#5980)
* Fix import path renaming * api: overhaul /repos/owner/repos/contents
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user