diff options
author | Unknwon <u@gogs.io> | 2015-07-19 17:44:03 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-19 17:44:03 +0800 |
commit | d6cdd49c1684f2d40f4e0932cb4e0ea987e1bd74 (patch) | |
tree | 36651c05a5aed66cd27a5b6387394414e2d42ee6 /models | |
parent | 42a72b62fcd6191335ec3475c5a6e5dbcb84234e (diff) | |
download | gitea-d6cdd49c1684f2d40f4e0932cb4e0ea987e1bd74.tar.gz gitea-d6cdd49c1684f2d40f4e0932cb4e0ea987e1bd74.zip |
fixes on #1171
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index ca118d99a7..4ee5c382fb 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1058,7 +1058,7 @@ func MirrorUpdate() { repoPath := filepath.Join(setting.RepoRootPath, m.RepoName+".git") if _, stderr, err := process.ExecDir(10*time.Minute, repoPath, fmt.Sprintf("MirrorUpdate: %s", repoPath), - "git", "remote", "update"); err != nil { + "git", "remote", "update", "--prune"); err != nil { desc := fmt.Sprintf("Fail to update mirror repository(%s): %s", repoPath, stderr) log.Error(4, desc) if err = CreateRepositoryNotice(desc); err != nil { |