mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-21 18:21:01 +02:00
28095: Fix two hard-coded invocations of the "git" command.
This commit is contained in:
parent
e03c47752b
commit
bb95aef24f
2 changed files with 6 additions and 3 deletions
|
@ -7,6 +7,9 @@
|
|||
* Seth House: 28084, 28083: Misc/vcs_info-examples: cleanups
|
||||
and new examples.
|
||||
|
||||
* 28095: Functions/VCS_Info/Backends/VCS_INFO_get_data_git: Fix
|
||||
two hard-coded invocations of the "git" command.
|
||||
|
||||
2010-07-15 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 28073: Src/exec.c, Src/init.c, Src/utils.c: allow #!
|
||||
|
@ -13388,5 +13391,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5028 $
|
||||
* $Revision: 1.5029 $
|
||||
*****************************************************
|
||||
|
|
|
@ -116,8 +116,8 @@ if [[ -z ${gitdir} ]] || [[ -z ${gitbranch} ]] ; then
|
|||
fi
|
||||
|
||||
if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" "check-for-changes" && \
|
||||
[[ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" != 'true' ]] && \
|
||||
git rev-parse --quiet --verify HEAD &> /dev/null ; then
|
||||
[[ "$(${vcs_comm[cmd]} rev-parse --is-inside-git-dir 2> /dev/null)" != 'true' ]] && \
|
||||
${vcs_comm[cmd]} rev-parse --quiet --verify HEAD &> /dev/null ; then
|
||||
# Default: off - these are potentially expensive on big repositories
|
||||
${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules --quiet --exit-code ||
|
||||
gitunstaged=1
|
||||
|
|
Loading…
Reference in a new issue