13 Commits

Author SHA1 Message Date
toramanlis
172a0edc54 Add help text (#23) 2023-04-09 03:11:51 +03:00
Ivan Pozdeev
810db7865a Do a rehash after update
Since shims and/or their necessary set might've changed

Closes https://github.com/pyenv/pyenv-update/issues/15
2022-09-16 02:35:05 +03:00
kroeschl
b46df06b06 Don't use `git pull --tags' for compatibility with Git 1.8.3 (#19) 2022-09-15 21:55:26 +03:00
Kenneth Lareau
7c4c4f10ab 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>
2021-07-10 15:12:58 +03:00
Alef Pereira
5e9adee3e6 Also allow update on 'main' branch 2021-03-22 18:43:33 -04:00
Guy Arad
1c42e8418d Using full ref name to support older git versions, when verifying the branch 2018-03-27 11:56:13 +03:00
Johann Visagie
59eaf3acf9 Only use actual branch names when verifying branch 2018-03-01 09:03:20 +01:00
Josh Hagins
ff45670e97 Ensure update is a fast-forward 2015-06-30 11:57:55 -04:00
jimmywan
f3d33dabbe Update git status to use porcelain
pyenv-update was failing for me with the following errors, even though I had no local changes:

$ pyenv update
Updating /home/vagrant/.pyenv...
pyenv-update: /home/vagrant/.pyenv is not clean
Updating /home/vagrant/.pyenv/plugins/pyenv-doctor...
pyenv-update: /home/vagrant/.pyenv/plugins/pyenv-doctor is not clean
Updating /home/vagrant/.pyenv/plugins/pyenv-pip-rehash...
pyenv-update: /home/vagrant/.pyenv/plugins/pyenv-pip-rehash is not clean
Updating /home/vagrant/.pyenv/plugins/pyenv-update...
pyenv-update: /home/vagrant/.pyenv/plugins/pyenv-update is not clean
Updating /home/vagrant/.pyenv/plugins/pyenv-virtualenvwrapper...
pyenv-update: /home/vagrant/.pyenv/plugins/pyenv-virtualenvwrapper is not clean
Updating /home/vagrant/.pyenv/plugins/pyenv-which-ext...
pyenv-update: /home/vagrant/.pyenv/plugins/pyenv-which-ext is not clean

I've updated the script to use --porcelain instead of --short.
From the man page:
"       --porcelain
           Give the output in an easy-to-parse format for scripts. This is similar to the short output, but will remain
           stable across Git versions and regardless of user configuration. See below for details."
2015-05-06 12:00:10 -05:00
Yamashita Yuu
1da322f6db Colorize output 2014-01-24 00:06:57 +09:00
Yamashita Yuu
ab462c8bb1 fix broken verify_repo_clean. chdir to git repo before invoking git status 2013-06-11 15:48:41 +09:00
Yamashita Yuu
77bb04ee05 apply -n to git remote show to skip ls-remote 2013-06-11 15:47:46 +09:00
Yamashita Yuu
5ee5d653d5 create project 2013-05-31 20:45:38 +09:00