Fix gitpath for PWDs with symlinks
This commit is contained in:
parent
7f929e4ef4
commit
19252a52bb
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
top=$(git rev-parse --show-toplevel 2>/dev/null | sed -e 's/\//\\\//g')
|
top=$(git rev-parse --show-toplevel 2>/dev/null | sed -e 's/\//\\\//g')
|
||||||
if [ -n "$top" ]
|
if [ -n "$top" ]
|
||||||
then
|
then
|
||||||
path=$(pwd | sed -e "s/^$top//")
|
path=$(pwd -P | sed -e "s/^$top//")
|
||||||
if [ ! -z "$path" ]
|
if [ ! -z "$path" ]
|
||||||
then echo -n "$path "
|
then echo -n "$path "
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue