Skip to content

Commit ba00af1

Browse files
committed
When a remote is being added via groovyw and it already exists do a fetch instead
1 parent 6cdc19e commit ba00af1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/groovy/common.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ class common {
290290
println "Added the remote '$remoteName' for $itemType '$itemName' - but the URL $url failed a test lookup. Typo? Not created yet?"
291291
}
292292
} else {
293-
println "Remote already exists"
293+
println "Remote already exists, fetching latest"
294+
remoteGit.fetch remote: remoteName
294295
}
295296
}
296297

0 commit comments

Comments
 (0)