Skip to content

Commit 79dcd7e

Browse files
committed
#2167 able to identify git version on Windows
1 parent ed001d7 commit 79dcd7e

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
33

44
![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
55

6-
##### Current version: 0.8.0
6+
##### Current version: 0.8.1
77

88
| Web | UI | Preview |
99
|:-------------:|:-------:|:-------:|

cmd/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func checkVersion() {
8888
{"github.com/go-macaron/toolbox", toolbox.Version, "0.1.0"},
8989
{"gopkg.in/ini.v1", ini.Version, "1.8.4"},
9090
{"gopkg.in/macaron.v1", macaron.Version, "0.8.0"},
91-
{"github.com/gogits/git-shell", git.Version, "0.1.0"},
91+
{"github.com/gogits/git-shell", git.Version, "0.1.1"},
9292
}
9393
for _, c := range checkers {
9494
if !version.Compare(c.Version(), c.Expected, ">=") {

gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/gogits/gogs/modules/setting"
1919
)
2020

21-
const APP_VER = "0.8.0.1212"
21+
const APP_VER = "0.8.1.1213"
2222

2323
func init() {
2424
runtime.GOMAXPROCS(runtime.NumCPU())

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/mcuadros/go-version"
2828
"gopkg.in/ini.v1"
2929

30-
"github.com/gogits/git-shell"
30+
git "github.com/gogits/git-shell"
3131
api "github.com/gogits/go-gogs-client"
3232

3333
"github.com/gogits/gogs/modules/base"

routers/repo/repo.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ func Download(ctx *middleware.Context) {
278278
archivePath = path.Join(ctx.Repo.GitRepo.Path, "archives/targz")
279279
archiveType = git.TARGZ
280280
default:
281+
log.Trace("Unknown format: %s", uri)
281282
ctx.Error(404)
282283
return
283284
}
@@ -315,7 +316,7 @@ func Download(ctx *middleware.Context) {
315316
return
316317
}
317318
} else {
318-
ctx.Error(404)
319+
ctx.Handle(404, "Download", nil)
319320
return
320321
}
321322

templates/.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.0.1212
1+
0.8.1.1213

0 commit comments

Comments
 (0)