Browse Source

Fix to reflect selected branch for fork (#762)

PullRequestCtx.HeadInfo did not contain the current selected branch
causing issue #304
tags/v1.2.0-rc1
Bwko Lunny Xiao 8 years ago
parent
commit
12fc4b7f69
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/home.tmpl

+ 1
- 1
templates/repo/home.tmpl View File

@@ -10,7 +10,7 @@
<div class="ui secondary menu">
{{if .PullRequestCtx.Allowed}}
<div class="fitted item">
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}">
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.Username}}:{{.BranchName}}">
<button class="ui green small button"><i class="octicon octicon-git-compare"></i></button>
</a>
</div>


Loading…
Cancel
Save