summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gogs.go2
-rw-r--r--routers/repo/view.go6
-rw-r--r--templates/.VERSION2
3 files changed, 6 insertions, 4 deletions
diff --git a/gogs.go b/gogs.go
index f20f0a10d0..1e493b92bc 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.4.7.0816 Alpha"
+const APP_VER = "0.4.7.0823 Alpha"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/routers/repo/view.go b/routers/repo/view.go
index bd1dcb8f99..108e892b9b 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -6,7 +6,6 @@ package repo
import (
"bytes"
- "fmt"
"io/ioutil"
"path"
"path/filepath"
@@ -14,6 +13,7 @@ import (
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/git"
+ "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/middleware"
"code.google.com/p/mahonia"
@@ -118,7 +118,9 @@ func Home(ctx *middleware.Context) {
ctx.Data["FileContent"] = string(base.RenderMarkdown(buf, ""))
} else {
if err, content := toUtf8(buf); err != nil {
- fmt.Println("transfer encode error:", err)
+ if err != nil {
+ log.Error(4, "Convert content encoding: %s", err)
+ }
ctx.Data["FileContent"] = string(buf)
} else {
ctx.Data["FileContent"] = content
diff --git a/templates/.VERSION b/templates/.VERSION
index 48fe58b179..f152becda3 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.4.7.0816 Alpha \ No newline at end of file
+0.4.7.0823 Alpha \ No newline at end of file