From 7181c8506712223411b55985d3e7126c0404638d Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Wed, 4 Jan 2023 03:21:19 +0100 Subject: [PATCH] fix: checkout file protocol --- helm-git-plugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-git-plugin.sh b/helm-git-plugin.sh index 767973ad..791c321c 100755 --- a/helm-git-plugin.sh +++ b/helm-git-plugin.sh @@ -248,7 +248,7 @@ main() { string_contains "$allowed_protocols" "$git_proto" || error "$error_invalid_protocol" - git_repo=$(echo "$_raw_uri" | sed -E 's#^([^/]+//[^/]+[^@\?]+)@?[^@\?]+\??.*$#\1#') + git_repo=$(echo "$_raw_uri" | sed -E 's#^([^/]+//[^@\?]+)@?[^@\?]+\??.*$#\1#') readonly git_repo="$git_repo" # TODO: Validate git_repo