From e3006582f6d3d85c9712a0c3da49c7c7c468042f Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Mon, 20 Feb 2023 12:54:44 +0100 Subject: [PATCH 1/3] feat!: disable sparse checkout --- 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 66526d8a..0dbb5b5a 100755 --- a/helm-git-plugin.sh +++ b/helm-git-plugin.sh @@ -268,7 +268,7 @@ main() { readonly git_ref="$git_ref" git_sparse=$(echo "$_raw_uri" | sed '/^.*sparse=\([^&#]*\).*$/!d;s//\1/') - [ -z "$git_sparse" ] && git_sparse=1 + [ -z "$git_sparse" ] && git_sparse=0 helm_depupdate=$(echo "$_raw_uri" | sed '/^.*depupdate=\([^&#]*\).*$/!d;s//\1/') [ -z "$helm_depupdate" ] && helm_depupdate=1 From 314aa0e69b943278e991a1aa2d6180ea107f21e0 Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Mon, 20 Feb 2023 12:56:48 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e029a3bb..1552b22b 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ to the plugin, please see [these instructions](.github/CONTRIBUTING.md). Here's the Git urls format, followed by examples: - git+https://[provider.com]/[user]/[repo]@[path/to/charts][?[ref=git-ref][&sparse=0][&depupdate=0]] - git+ssh://git@[provider.com]/[user]/[repo]@[path/to/charts][?[ref=git-ref][&sparse=0][&depupdate=0]] - git+file://[path/to/repo]@[path/to/charts][?[ref=git-ref][&sparse=0][&depupdate=0]] + git+https://[provider.com]/[user]/[repo]@[path/to/charts][?[ref=git-ref][&sparse=1][&depupdate=0]] + git+ssh://git@[provider.com]/[user]/[repo]@[path/to/charts][?[ref=git-ref][&sparse=1][&depupdate=0]] + git+file://[path/to/repo]@[path/to/charts][?[ref=git-ref][&sparse=1][&depupdate=0]] - git+https://github.com/jetstack/cert-manager@deploy/charts?ref=v0.6.2&sparse=0 - git+ssh://git@github.com/jetstack/cert-manager@deploy/charts?ref=v0.6.2&sparse=1 + git+https://github.com/jetstack/cert-manager@deploy/charts?ref=v0.6.2&sparse=1 + git+ssh://git@github.com/jetstack/cert-manager@deploy/charts?ref=v0.6.2&sparse=0 git+ssh://git@github.com/jetstack/cert-manager@deploy/charts?ref=v0.6.2 git+https://github.com/istio/istio@install/kubernetes/helm?ref=1.5.4&sparse=0&depupdate=0 git+https://github.com/bitnami/charts@bitnami/wordpress?depupdate=0?ref=master&sparse=0&depupdate=0&package=0 @@ -78,7 +78,7 @@ Pulling value files: **name**|**description**|**default** --------|---------------|----------- `ref`|Set git ref to a branch or tag. Also works for commits with `sparse=0`.|`master` -`sparse`|Set git strategy to sparse. Will try to fetch only the needed commits for the target path. If set to `0`, default git strategy will be used.|`1` +`sparse`|Set git strategy to sparse. Will try to fetch only the needed commits for the target path. If set to `0`, default git strategy will be used.|`0` `depupdate`|Run `helm dependency update` on the retrieved chart. If set to `0`, this step is skipped.|`1` `package`|Run `helm package` on the retrieved chart. If set to `0`, this step is skipped.|`1` From 808910c06fa1012c94311cc687d1831c631b2182 Mon Sep 17 00:00:00 2001 From: Zadkiel AHARONIAN Date: Tue, 9 Jul 2024 19:12:42 +0200 Subject: [PATCH 3/3] Update helm-git-plugin.sh --- 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 f8485e8e..c0bc9d27 100755 --- a/helm-git-plugin.sh +++ b/helm-git-plugin.sh @@ -330,7 +330,7 @@ parse_uri() { readonly git_ref trace "git_ref: $git_ref" - git_sparse=$(echo "$_raw_uri" | sed '/^.*sparse=\([^&#]*\).*$/!d;s//\1/') + git_sparse=$(echo "$_uri_query" | sed '/^.*sparse=\([^&#]*\).*$/!d;s//\1/') [ -z "$git_sparse" ] && git_sparse=0 readonly git_sparse trace "git_sparse: $git_sparse"