Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 10:46:10 +01:00

models: mirro code fix for #821

This commit is contained in:
Unknwon 2015-02-02 23:42:53 -05:00
parent 902f19f70b
commit 4de0b19cec

View file

@ -504,9 +504,9 @@ func initRepository(f string, u *User, repo *Repository, initReadme bool, repoLa
}
if len(fileName) == 0 {
// re-fetch the repository from database before updating it (else it would
// Re-fetch the repository from database before updating it (else it would
// override changes that were done earlier with sql)
if _, err := x.Get(repo); err != nil {
if repo, err = GetRepositoryById(repo.Id); err != nil {
return err
}
repo.IsBare = true