diff --git a/git-clone/main.tf b/git-clone/main.tf index a1a4ad1..f745b95 100644 --- a/git-clone/main.tf +++ b/git-clone/main.tf @@ -27,7 +27,7 @@ variable "agent_id" { locals { # Remove query parameters and fragments from the URL - url = replace(replace(var.url, "/\\?.*/", ""), "/#.*", "") + url = replace(replace(var.url, "/\\?.*/", ""), "/#.*/", "") # Remove tree and branch name from the URL clone_url = replace(replace(local.url, "//-/tree/.*/", ""), "//tree/.*/", "") # Extract the branch name from the URL