mirror of
https://github.com/pyenv/pyenv-update.git
synced 2025-11-08 11:33:49 -05:00
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 <relayer@lindenlab.com>
This commit is contained in:
@@ -54,7 +54,8 @@ verify_repo() {
|
|||||||
update_repo() {
|
update_repo() {
|
||||||
info "Updating $1..."
|
info "Updating $1..."
|
||||||
verify_repo "$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() {
|
info() {
|
||||||
|
|||||||
Reference in New Issue
Block a user