Browse Source

Update glide.yaml

Unknwon 8 years ago
parent
commit
73b4acbb63
5 changed files with 8 additions and 7 deletions
  1. 1 1
      cmd/web.go
  2. 1 1
      glide.lock
  3. 1 1
      gogs.go
  4. 1 1
      templates/.VERSION
  5. 4 3
      templates/repo/view_list.tmpl

+ 1 - 1
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 {

+ 1 - 1
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

+ 1 - 1
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())

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.9.31.0627
+0.9.31.0628

+ 4 - 3
templates/repo/view_list.tmpl

@@ -30,10 +30,11 @@
 				{{if $entry.IsSubModule}}
 					<td>
 						<span class="icon octicon octicon-file-submodule"></span>
-						{{if $commit.RefUrl AppUrl}}
-							<a href="{{$commit.RefUrl AppUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl AppUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a>
+						{{$refURL := $commit.RefURL AppUrl $.BranchLink}}
+						{{if $refURL}}
+							<a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a>
 						{{else}}
-							{{$entry.Name}} @ {{ShortSha $commit.RefId}}
+							{{$entry.Name}} @ {{ShortSha $commit.RefID}}
 						{{end}}
 					</td>
 				{{else}}