mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	models: mirro code fix for #821
This commit is contained in:
		| @@ -504,9 +504,9 @@ func initRepository(f string, u *User, repo *Repository, initReadme bool, repoLa | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if len(fileName) == 0 { | 	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) | 		// 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 | 			return err | ||||||
| 		} | 		} | ||||||
| 		repo.IsBare = true | 		repo.IsBare = true | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user