From 73b4acbb639e6564f2a47e995f21ee50d78b283a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 27 Jun 2016 23:40:36 +0800 Subject: [PATCH] Update glide.yaml --- cmd/web.go | 2 +- glide.lock | 2 +- gogs.go | 2 +- templates/.VERSION | 2 +- templates/repo/view_list.tmpl | 7 ++++--- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index f88c3385d8..d7329538c3 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -87,7 +87,7 @@ func checkVersion() { {"github.com/go-macaron/toolbox", toolbox.Version, "0.1.0"}, {"gopkg.in/ini.v1", ini.Version, "1.8.4"}, {"gopkg.in/macaron.v1", macaron.Version, "1.1.2"}, - {"github.com/gogits/git-module", git.Version, "0.2.9"}, + {"github.com/gogits/git-module", git.Version, "0.3.0"}, {"github.com/gogits/go-gogs-client", gogs.Version, "0.7.4"}, } for _, c := range checkers { diff --git a/glide.lock b/glide.lock index 51ab077b8f..bdbfc3fd88 100644 --- a/glide.lock +++ b/glide.lock @@ -41,7 +41,7 @@ imports: - name: github.com/gogits/cron version: 96040e4fab17baa0391ce571694e4ccb5fce5dac - name: github.com/gogits/git-module - version: 1f1117c3969f53809bb09f6da07ec2493b2aa07f + version: 1dad9765c0adf04fe1eabadfb1a9189157dc50af - name: github.com/gogits/go-gogs-client version: 01270dfe22e92d99ce9402fedba4530ad8810100 - name: github.com/issue9/identicon diff --git a/gogs.go b/gogs.go index 74157c89b7..25d3494c0a 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.9.31.0627" +const APP_VER = "0.9.31.0628" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/templates/.VERSION b/templates/.VERSION index 3fc8b249bb..e3cd2c7396 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.31.0627 \ No newline at end of file +0.9.31.0628 \ No newline at end of file diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index c06ab3441f..4db9e39057 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -30,10 +30,11 @@ {{if $entry.IsSubModule}} - {{if $commit.RefUrl AppUrl}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{$refURL := $commit.RefURL AppUrl $.BranchLink}} + {{if $refURL}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{else}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{$entry.Name}} @ {{ShortSha $commit.RefID}} {{end}} {{else}}