mirror of
https://github.com/pyenv/pyenv-update.git
synced 2025-12-08 16:11:26 +09:00
fix broken verify_repo_clean. chdir to git repo before invoking git status
This commit is contained in:
parent
77bb04ee05
commit
ab462c8bb1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user