mirror of
https://github.com/pyenv/pyenv-update.git
synced 2025-11-12 13:33:46 -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() {
|
verify_repo_clean() {
|
||||||
local repo="$1"
|
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
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user