diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-01 05:20:33 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-01 05:20:33 -0400 |
commit | 17d2675dd263ba70a4d5370070d879776469144a (patch) | |
tree | fcaa71a7f1202c0a24359891b65393ef65a80fc5 | |
parent | b95e78f7e6fd1a135d2a03782e193dd9a558fded (diff) | |
download | gitea-17d2675dd263ba70a4d5370070d879776469144a.tar.gz gitea-17d2675dd263ba70a4d5370070d879776469144a.zip |
Fix #258
-rw-r--r-- | models/repo.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/models/repo.go b/models/repo.go index 8139d22abf..a68757af31 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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) |