Skip to content

Commit

Permalink
Fix to reflect selected branch for fork (#762)
Browse files Browse the repository at this point in the history
PullRequestCtx.HeadInfo did not contain the current selected branch
causing issue #304
  • Loading branch information
Bwko authored and lunny committed Jan 26, 2017
1 parent abdc47e commit 067ae5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/home.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 067ae5d

Please sign in to comment.