1
0
Fork 0
mirror of synced 2024-11-26 09:15:34 -05:00

Fix missing -C in command git

This commit is contained in:
Eric Nielsen 2023-03-26 16:51:24 -05:00
parent 903e0e5249
commit 312b08c20a
No known key found for this signature in database
GPG key ID: 678AF5E338C87D99
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ case ${ACTION} in
fi fi
TO_REV=${REV}@{u} TO_REV=${REV}@{u}
if [[ ${ACTION} == check ]]; then if [[ ${ACTION} == check ]]; then
local -ri behind=$(command git rev-list --count ${REV}..${TO_REV} -- 2>/dev/null) local -ri behind=$(command git -C ${DIR} rev-list --count ${REV}..${TO_REV} -- 2>/dev/null)
if (( behind )); then if (( behind )); then
print_okay "Update available [behind ${behind}]" print_okay "Update available [behind ${behind}]"
else else

View file

@ -434,7 +434,7 @@ _zimfw_compile() {
} }
_zimfw_info() { _zimfw_info() {
print -R 'zimfw version: '${_zversion}' (built at 2023-03-26 14:32:46 UTC, previous commit is b7b33f3)' print -R 'zimfw version: '${_zversion}' (built at 2023-03-26 21:48:32 UTC, previous commit is 903e0e5)'
local zparam local zparam
for zparam in LANG ${(Mk)parameters:#LC_*} OSTYPE TERM TERM_PROGRAM TERM_PROGRAM_VERSION ZIM_HOME ZSH_VERSION; do for zparam in LANG ${(Mk)parameters:#LC_*} OSTYPE TERM TERM_PROGRAM TERM_PROGRAM_VERSION ZIM_HOME ZSH_VERSION; do
print -R ${(r.22....:.)zparam}${(P)zparam} print -R ${(r.22....:.)zparam}${(P)zparam}
@ -795,7 +795,7 @@ case \${ACTION} in
fi fi
TO_REV=\${REV}@{u} TO_REV=\${REV}@{u}
if [[ \${ACTION} == check ]]; then if [[ \${ACTION} == check ]]; then
local -ri behind=\$(command git rev-list --count \${REV}..\${TO_REV} -- 2>/dev/null) local -ri behind=\$(command git -C \${DIR} rev-list --count \${REV}..\${TO_REV} -- 2>/dev/null)
if (( behind )); then if (( behind )); then
print_okay \"Update available [behind \${behind}]\" print_okay \"Update available [behind \${behind}]\"
else else