fix broken verify_repo_clean. chdir to git repo before invoking git status

This commit is contained in:
Yamashita Yuu
2013-06-11 15:48:41 +09:00
parent 77bb04ee05
commit ab462c8bb1

View File

@@ -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