Browse Source

models: mirro code fix for #821

tags/v1.21.12.1
Unknwon 11 years ago
parent
commit
4de0b19cec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/repo.go

+ 2
- 2
models/repo.go 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


Loading…
Cancel
Save