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

This commit is contained in:
Eugen Kuksa 2014-12-04 16:18:39 +01:00
parent 8b0ab3ce61
commit 668d3a04a8

View file

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