aboutsummaryrefslogtreecommitdiff
path: root/modules/context/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-23 14:27:34 -0400
committerUnknwon <u@gogs.io>2017-03-23 14:27:34 -0400
commitbeee6e03b15e594f396fb2fb769b58e543ef1794 (patch)
tree471a20e88e3ee8c1bfcd39d6bef2f420ed618287 /modules/context/repo.go
parent902372067cad9cfe7360473d1b985217a308a949 (diff)
error: move ErrRepoNotExist -> errors.RepoNotExist
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r--modules/context/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index 4a3ccf97..d3475e43 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -111,7 +111,7 @@ func (r *Repository) PullRequestURL(baseBranch, headBranch string) string {
func RetrieveBaseRepo(ctx *Context, repo *models.Repository) {
// Non-fork repository will not return error in this method.
if err := repo.GetBaseRepo(); err != nil {
- if models.IsErrRepoNotExist(err) {
+ if errors.IsRepoNotExist(err) {
repo.IsFork = false
repo.ForkID = 0
return
@@ -180,7 +180,7 @@ func RepoAssignment() macaron.Handler {
// Get repository.
repo, err := models.GetRepositoryByName(owner.ID, repoName)
if err != nil {
- if models.IsErrRepoNotExist(err) {
+ if errors.IsRepoNotExist(err) {
if ctx.Query("go-get") == "1" {
earlyResponseForGoGetMeta(ctx)
return