diff options
author | delvh | 2021-12-02 20:36:50 +0100 |
---|---|---|
committer | GitHub | 2021-12-02 20:36:50 +0100 |
commit | 4646c7c52d453dcc817f8e14b991de0e4f67b492 (patch) | |
tree | 426e0f4e544c0ad87c32fbad6775e9fc6a10e2aa /contrib | |
parent | fbf3208229effba63cfe2276d7d7d120f143a8b2 (diff) |
Use fmt.Sprintf correctly (#17886)
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 231ac6452..e9dd675d4 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(gitea_git.PullPrefix+"%s/head:%s", pr, branchRef) + ref := fmt.Sprintf("%s%s/head:%s", gitea_git.PullPrefix, pr, branchRef) err = repo.Fetch(&git.FetchOptions{ RemoteName: remoteUpstream, RefSpecs: []config.RefSpec{ |