From 7c4c4f10ab2a294beba8bdbf0950a68653be20a0 Mon Sep 17 00:00:00 2001 From: Kenneth Lareau Date: Sat, 10 Jul 2021 05:12:58 -0700 Subject: [PATCH] Add '--tags' to 'git pull' command to pull in tags for repos as well (#10) * Add '--tags' to 'git pull' command to pull in tags for repos as well Co-authored-by: Kenneth Lareau --- bin/pyenv-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pyenv-update b/bin/pyenv-update index d853de3..9cca345 100755 --- a/bin/pyenv-update +++ b/bin/pyenv-update @@ -54,7 +54,8 @@ verify_repo() { update_repo() { info "Updating $1..." verify_repo "$1" && - ( cd "${repo}" && git pull --no-rebase --ff "${REMOTE}" "${BRANCH_CHOICE}" ) + # pyenv-installer makes the repos shallow, so tags are not fetched by default + ( cd "${repo}" && git pull --tags --no-rebase --ff "${REMOTE}" "${BRANCH_CHOICE}" ) } info() {