Skip to content

Commit

Permalink
kie-issues#759: make git clone pattern more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Dec 12, 2023
1 parent 7f2f402 commit ff6d0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ff6d0b5

Please sign in to comment.