Unknwon hace 10 años
padre
commit
3c3f7c2a56
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      modules/middleware/repo.go

+ 2 - 0
modules/middleware/repo.go

@@ -402,6 +402,8 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
 		// repo is bare and display enable
 		if ctx.Repo.Repository.IsBare {
 			log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
+			// NOTE: to prevent templating error
+			ctx.Data["BranchName"] = ""
 			if displayBare {
 				ctx.HTML(200, "repo/bare")
 			}