Skip to content

Commit

Permalink
Remove extra git-dir call in git-info and use git_dir variable instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ypomortsev authored and sorin-ionescu committed Nov 13, 2014
1 parent 00a5639 commit 3012c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/git/functions/git-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3012c09

Please sign in to comment.