0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 02:24:34 +01:00
This commit is contained in:
Unknwon 2014-08-01 05:20:33 -04:00
parent b95e78f7e6
commit 17d2675dd2

View file

@ -237,8 +237,6 @@ func MirrorRepository(repoId int64, userName, repoName, repoPath, url string) er
}); err != nil {
return err
}
// return git.UnpackRefs(repoPath)
return nil
}
@ -255,9 +253,7 @@ func MirrorUpdate() {
repoPath, fmt.Sprintf("MirrorUpdate: %s", repoPath),
"git", "remote", "update"); err != nil {
return errors.New("git remote update: " + stderr)
} // else if err = git.UnpackRefs(repoPath); err != nil {
// return errors.New("UnpackRefs: " + err.Error())
// }
}
m.NextUpdate = time.Now().Add(time.Duration(m.Interval) * time.Hour)
return UpdateMirror(m)