Skip to content

Commit 067ae5d

Browse files
Bwkolunny
authored andcommitted
Fix to reflect selected branch for fork (#762)
PullRequestCtx.HeadInfo did not contain the current selected branch causing issue #304
1 parent abdc47e commit 067ae5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="ui secondary menu">
1111
{{if .PullRequestCtx.Allowed}}
1212
<div class="fitted item">
13-
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}">
13+
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.Username}}:{{.BranchName}}">
1414
<button class="ui green small button"><i class="octicon octicon-git-compare"></i></button>
1515
</a>
1616
</div>

0 commit comments

Comments
 (0)