if (!Strings.isNotBlank(substitutedUrl)) {
LOGGER.warn("Could not render git master URL {}.", masterUrl);
}
//Catch any possible issue indicating that the URL is invalid.
new URL(substitutedUrl);
gitservice.notifyRemoteChanged(substitutedUrl);
}
} catch (Exception e) {
LOGGER.error("Failed to point origin to the new master.", e);
}
}