diff options
author | mscherer | 2021-12-02 08:28:08 +0100 |
---|---|---|
committer | GitHub | 2021-12-02 15:28:08 +0800 |
commit | 34b5436ae1af2735546bb519a950eabf4990212d (patch) | |
tree | 12953d3ad1915baba2ba0f59ddb1a5a4357668fc /contrib | |
parent | ba57e30f13906ad7104da7892dc3dc79721ed2fe (diff) |
Refactor various strings (#17784)
Fixes #16478
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pr/checkout.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go index 18c0585f4..231ac6452 100644 --- a/contrib/pr/checkout.go +++ b/contrib/pr/checkout.go @@ -215,7 +215,7 @@ func main() { //Use git cli command for windows runCmd("git", "fetch", remoteUpstream, fmt.Sprintf("pull/%s/head:%s", pr, branch)) } else { - ref := fmt.Sprintf("refs/pull/%s/head:%s", pr, branchRef) + ref := fmt.Sprintf(gitea_git.PullPrefix+"%s/head:%s", pr, branchRef) err = repo.Fetch(&git.FetchOptions{ RemoteName: remoteUpstream, RefSpecs: []config.RefSpec{ |