From d76e4d954355d16b14186ed957bd78b7e2a3a26a Mon Sep 17 00:00:00 2001 From: "Brewer, Michael (US - California)" Date: Fri, 5 Apr 2024 16:15:30 -0700 Subject: [PATCH] test(git-clone): add missing fragment test --- git-clone/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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