1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 07:31:42 +00:00

[#169] Move _git-dir out of git-info into git-dir

This commit is contained in:
Sorin Ionescu
2012-05-06 13:40:11 -04:00
parent 3efd4b22c1
commit 3c084f57bb
2 changed files with 18 additions and 14 deletions

View File

@ -0,0 +1,16 @@
#
# Gets the path to the Git directory.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
local git_dir="${$(git rev-parse --git-dir):A}"
if [[ -n "$git_dir" ]]; then
print "$git_dir"
return 0
fi
return 1