From d43bcb972091878efa3692100e8479fb887332f5 Mon Sep 17 00:00:00 2001
From: Sorin Ionescu <sorin.ionescu@gmail.com>
Date: Mon, 8 Dec 2014 18:21:00 -0500
Subject: [PATCH] Revert "Remove extra git-dir call in git-info and use git_dir
 variable instead"

This reverts commit 3012c0984b2b3fd97a58ac9dad1ae54efc546e49.
---
 modules/git/functions/git-info | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/git/functions/git-info b/modules/git/functions/git-info
index 200b2d2..8aaa4c3 100644
--- a/modules/git/functions/git-info
+++ b/modules/git/functions/git-info
@@ -198,7 +198,7 @@ function git-info {
 
   # Format stashed.
   zstyle -s ':prezto:module:git:info:stashed' format 'stashed_format'
-  if [[ -n "$stashed_format" && -f "${git_dir}/refs/stash" ]]; then
+  if [[ -n "$stashed_format" && -f "$(git-dir)/refs/stash" ]]; then
     stashed="$(git stash list 2> /dev/null | wc -l | awk '{print $1}')"
     if [[ -n "$stashed" ]]; then
       zformat -f stashed_formatted "$stashed_format" "S:$stashed"