diff options
author | Unknwon <u@gogs.io> | 2016-02-15 14:57:15 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-15 14:57:15 -0500 |
commit | 632c27802c13f95ba95ba48eb6056d5af760183e (patch) | |
tree | 801cef7f5684b97d4da650feb0f5faf033e3888e /models/repo.go | |
parent | dc89c51f3efec39e120dd5b3878a8a9c922721ef (diff) | |
download | gitea-632c27802c13f95ba95ba48eb6056d5af760183e.tar.gz gitea-632c27802c13f95ba95ba48eb6056d5af760183e.zip |
Minor fix for #2624
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/models/repo.go b/models/repo.go index a08d3a4df1..57014beb0a 100644 --- a/models/repo.go +++ b/models/repo.go @@ -592,6 +592,11 @@ func UpdateMirror(m *Mirror) error { return updateMirror(x, m) } +func DeleteMirrorByRepoID(repoID int64) error { + _, err := x.Delete(&Mirror{RepoID: repoID}) + return err +} + func createUpdateHook(repoPath string) error { return git.SetUpdateHook(repoPath, fmt.Sprintf(_TPL_UPDATE_HOOK, setting.ScriptType, "\""+setting.AppPath+"\"", setting.CustomConf)) @@ -1620,11 +1625,6 @@ func MirrorUpdate() { } } -func DeleteMirrorByRepoID(repoId int64) error { - _, err := x.Delete(&Mirror{RepoID: repoId}) - return err -} - // GitFsck calls 'git fsck' to check repository health. func GitFsck() { if taskStatusPool.IsRunning(_GIT_FSCK) { |