Skip to content

Commit 173a7fa

Browse files
committed
Fix cloning refs/pull/* style refs
Signed-off-by: Bence Szépkúti <[email protected]>
1 parent bf316ad commit 173a7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vars/checkout_repo.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Map<String, Object> parametrized_repo(String repo, String branch) {
232232
refspec: "+$remoteRef:refs/remotes/origin/$localBranch",
233233
credentialsId: env.GIT_CREDENTIALS_ID
234234
]],
235-
branches: [[name: branch]],
235+
branches: [[name: localBranch]],
236236
extensions: [
237237
[$class: 'CloneOption', timeout: 60, honorRefspec: true, shallow: true],
238238
[$class: 'SubmoduleOption', recursiveSubmodules: true, parentCredentials: true, shallow: true],

0 commit comments

Comments
 (0)