chore: remove url check when updating repositories
@@ -124,10 +124,7 @@ class common {
} else {
itemsRetrieved << itemName
def targetUrl = "https://github.com/${githubTargetHome}/${itemName}"
- if (!isUrlValid(targetUrl)) {
- println "Can't retrieve $itemType from $targetUrl - URL appears invalid. Typo? Not created yet?"
- return
- }
+ try {
println "Retrieving $itemType $itemName from $targetUrl"
if (githubTargetHome != githubDefaultHome) {
println "Doing a retrieve from a custom remote: $githubTargetHome - will name it as such plus add the $githubDefaultHome remote as '$defaultRemote'"
@@ -137,6 +134,10 @@ class common {
} else {
Grgit.clone dir: targetDir, uri: targetUrl
}
+ } catch (GrgitException exception) {
+ println color("Unable to clone $itemName, Skipping: ${exception.getMessage()}", Ansi.RED)
+ return
+ }
// This step allows the item type to check the newly cloned item and add in extra template stuff
itemTypeScript.copyInTemplateFiles(targetDir)
@@ -222,8 +223,8 @@ class common {
def targetUrl = remotes.find {
it.name == defaultRemote
}?.url
- if (targetUrl == null || !isUrlValid(targetUrl)) {
- println color("While updating $itemName found its '$defaultRemote' remote invalid or its URL unresponsive: $targetUrl", Ansi.RED)
+ if (targetUrl == null) {
+ println color("While updating $itemName remote `$defaultRemote` is not found.", Ansi.RED)
return
}
