mirror of
https://github.com/pyenv/pyenv-update.git
synced 2025-12-11 01:01: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() {
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user