diff --git a/README.md b/README.md
index 02e624c0a8..73e35c4b9d 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
![](public/img/gogs-large-resize.png)
-##### Current version: 0.7.10 Beta
+##### Current version: 0.7.11 Beta
diff --git a/gogs.go b/gogs.go
index 95b8e931f4..04e1cf657d 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.7.10.1114 Beta"
+const APP_VER = "0.7.11.1115 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 1418486430..afa95a250c 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -79,6 +79,12 @@ func ApiRepoAssignment() macaron.Handler {
// RepoRef handles repository reference name including those contain `/`.
func RepoRef() macaron.Handler {
return func(ctx *Context) {
+ // Empty repository does not have reference information.
+ if ctx.Repo.Repository.IsBare {
+ ctx.Data["CommitsCount"] = 0
+ return
+ }
+
var (
refName string
err error
diff --git a/templates/.VERSION b/templates/.VERSION
index 32d6c06db8..7b98f0fd88 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.7.10.1114 Beta
\ No newline at end of file
+0.7.11.1115 Beta
\ No newline at end of file
diff --git a/templates/repo/header_old.tmpl b/templates/repo/header_old.tmpl
index 23a3e0888d..7a51009573 100644
--- a/templates/repo/header_old.tmpl
+++ b/templates/repo/header_old.tmpl
@@ -10,29 +10,6 @@
{{if .IsFork}}forked from {{SubStr .BaseRepo.RepoLink 1 -1}}{{end}}