From 5d817541940548aa9dee613318c20568c684d552 Mon Sep 17 00:00:00 2001 From: Arkaitz Jimenez Date: Fri, 11 Nov 2022 13:26:58 +0100 Subject: [PATCH] Updates current head if its checked out --- 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 44c19c10..621fa043 100755 --- a/helm-git-plugin.sh +++ b/helm-git-plugin.sh @@ -60,7 +60,7 @@ git_fetch_ref() { _git_ref="${2?Mising git ref as second parameter}" # Fetches any kind of ref to its right place, tags, annotated tags, branches and commit refs - GIT_DIR="${_git_repo_path}" git fetch --force --depth=1 origin "refs/*/${_git_ref}:refs/*/${_git_ref}" "${_git_ref}" + GIT_DIR="${_git_repo_path}" git fetch -u --depth=1 origin "refs/*/${_git_ref}:refs/*/${_git_ref}" "${_git_ref}" } #git_cache_intercept(git_repo, git_ref)