Sorin Ionescu
13 years ago
2 changed files with 18 additions and 14 deletions
@ -0,0 +1,16 @@
@@ -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 |
||||
|
Loading…
Reference in new issue