1
0
Fork 0

Move `git-dir` - only call it in working copies.

pull/746/head
Eugen Kuksa 10 years ago
parent 8b0ab3ce61
commit 668d3a04a8

@ -95,8 +95,6 @@ function git-info {
setopt LOCAL_OPTIONS setopt LOCAL_OPTIONS
setopt EXTENDED_GLOB setopt EXTENDED_GLOB
local git_dir="$(git-dir)"
local action local action
local action_format local action_format
local action_formatted local action_formatted
@ -170,6 +168,8 @@ function git-info {
return 1 return 1
fi fi
local git_dir="$(git-dir)"
if (( $# > 0 )); then if (( $# > 0 )); then
if [[ "$1" == [Oo][Nn] ]]; then if [[ "$1" == [Oo][Nn] ]]; then
git config --bool prompt.showinfo true git config --bool prompt.showinfo true

Loading…
Cancel
Save