diff --git a/models/repo.go b/models/repo.go index 9770fe986..1be3eedbe 100644 --- a/models/repo.go +++ b/models/repo.go @@ -653,7 +653,8 @@ func MigrateRepository(u *User, opts MigrateRepoOptions) (*Repository, error) { Quiet: true, Timeout: migrateTimeout, }); err != nil { - log.Info("Clone wiki: %v", err) + log.Trace("Fail to clone wiki: %v", err) + os.RemoveAll(wikiPath) } }