mirror of
https://github.com/pyenv/pyenv-update.git
synced 2025-11-08 11:33:49 -05:00
fix broken verify_repo_clean. chdir to git repo before invoking git status
This commit is contained in:
@@ -20,7 +20,7 @@ verify_repo_master() {
|
||||
|
||||
verify_repo_clean() {
|
||||
local repo="$1"
|
||||
if ( cd "${repo}" | git status --short ) | grep -q -v '^[!?][!?]'; then
|
||||
if ( cd "${repo}" && git status --short ) | grep -q -v '^[!?][!?]'; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user