mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Minor fix for #2624
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user