Skip to content

Commit

Permalink
Updates current head if its checked out
Browse files Browse the repository at this point in the history
  • Loading branch information
arkaitzj committed Nov 11, 2022
1 parent 2582734 commit 679c998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm-git-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 679c998

Please sign in to comment.