mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix #643
This commit is contained in:
		@@ -402,6 +402,8 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
 | 
				
			|||||||
		// repo is bare and display enable
 | 
							// repo is bare and display enable
 | 
				
			||||||
		if ctx.Repo.Repository.IsBare {
 | 
							if ctx.Repo.Repository.IsBare {
 | 
				
			||||||
			log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
 | 
								log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
 | 
				
			||||||
 | 
								// NOTE: to prevent templating error
 | 
				
			||||||
 | 
								ctx.Data["BranchName"] = ""
 | 
				
			||||||
			if displayBare {
 | 
								if displayBare {
 | 
				
			||||||
				ctx.HTML(200, "repo/bare")
 | 
									ctx.HTML(200, "repo/bare")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user