summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authordelvh <leon@kske.dev>2021-12-02 20:36:50 +0100
committerGitHub <noreply@github.com>2021-12-02 20:36:50 +0100
commit4646c7c52d453dcc817f8e14b991de0e4f67b492 (patch)
tree426e0f4e544c0ad87c32fbad6775e9fc6a10e2aa /contrib
parentfbf3208229effba63cfe2276d7d7d120f143a8b2 (diff)
downloadgitea-4646c7c52d453dcc817f8e14b991de0e4f67b492.tar.gz
gitea-4646c7c52d453dcc817f8e14b991de0e4f67b492.zip
Use fmt.Sprintf correctly (#17886)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pr/checkout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go
index 231ac6452e..e9dd675d4d 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{