Move git-dir
- only call it in working copies.
This commit is contained in:
parent
8b0ab3ce61
commit
668d3a04a8
1 changed files with 2 additions and 2 deletions
|
@ -95,8 +95,6 @@ function git-info {
|
|||
setopt LOCAL_OPTIONS
|
||||
setopt EXTENDED_GLOB
|
||||
|
||||
local git_dir="$(git-dir)"
|
||||
|
||||
local action
|
||||
local action_format
|
||||
local action_formatted
|
||||
|
@ -170,6 +168,8 @@ function git-info {
|
|||
return 1
|
||||
fi
|
||||
|
||||
local git_dir="$(git-dir)"
|
||||
|
||||
if (( $# > 0 )); then
|
||||
if [[ "$1" == [Oo][Nn] ]]; then
|
||||
git config --bool prompt.showinfo true
|
||||
|
|
Loading…
Add table
Reference in a new issue