File tree 1 file changed +1
-2
lines changed
templates/repo/issue/view_content 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 5
5
<div class="ui secondary segment">
6
6
{{if eq $.Issue.PullRequest.Flow 0}}
7
7
<div>git checkout -b {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.OwnerName}}-{{end}}{{$.Issue.PullRequest.HeadBranch}} {{$.Issue.PullRequest.BaseBranch}}</div>
8
- {{/* the only legacy HTMLURL used in template, which doesn't affect users too much and is very diffcult to fix */}}
9
- <div>git pull {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.HTMLURL}}{{else}}origin{{end}} {{$.Issue.PullRequest.HeadBranch}}</div>
8
+ <div>git pull {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{URLJoin AppUrl $.Issue.PullRequest.HeadRepo.Link}}{{else}}origin{{end}} {{$.Issue.PullRequest.HeadBranch}}</div>
10
9
{{else}}
11
10
<div>git fetch origin {{$.Issue.PullRequest.GetGitRefName}}:{{$.Issue.PullRequest.HeadBranch}}</div>
12
11
{{end}}
You can’t perform that action at this time.
0 commit comments