diff options
author | Unknwon <u@gogs.io> | 2016-08-30 16:18:33 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-30 16:18:33 -0700 |
commit | 8516dfcb6cb008f286ec84bed4243928acb94844 (patch) | |
tree | 9b3882438a04a3e659e49e35364a5643a71c9258 /modules/context/repo.go | |
parent | c1ecb6c60a1acacf530e226b8043ca93d2fe4a07 (diff) | |
download | gitea-8516dfcb6cb008f286ec84bed4243928acb94844.tar.gz gitea-8516dfcb6cb008f286ec84bed4243928acb94844.zip |
#2018 able to sync now for mirrors
- Refactor code to use sync.UniqueQueue
- Closes #3509
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r-- | modules/context/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index d72e64e42a..f078523e75 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -216,7 +216,7 @@ func RepoAssignment(args ...bool) macaron.Handler { ctx.Data["HasAccess"] = true if repo.IsMirror { - ctx.Repo.Mirror, err = models.GetMirror(repo.ID) + ctx.Repo.Mirror, err = models.GetMirrorByRepoID(repo.ID) if err != nil { ctx.Handle(500, "GetMirror", err) return |