From b716f85425c1261ddb15263bbb48387e36f47623 Mon Sep 17 00:00:00 2001 From: jstastny-cz Date: Tue, 12 Dec 2023 10:55:07 +0100 Subject: [PATCH] kie-issues#759: make git clone pattern more robust --- scripts/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/common.py b/scripts/common.py index 682a19a73..e0659e818 100644 --- a/scripts/common.py +++ b/scripts/common.py @@ -449,8 +449,8 @@ def update_examples_uri_in_clone_repo(examples_uri): :param examples_uri: kogito-examples uri """ print("Set examples_uri {} in clone-repo script".format(examples_uri)) - pattern = re.compile(r'(git clone.*)') - replacement = "git clone {} kogito-examples".format(examples_uri) + pattern = re.compile(r'(git clone \S+)') + replacement = "git clone {}".format(examples_uri) update_in_file(CLONE_REPO_SCRIPT, pattern, replacement) def update_maven_repo_in_build_config(repo_url, replace_default_repository):