Fix gitpath for PWDs with symlinks

This commit is contained in:
Talia 2020-02-07 13:15:51 +01:00
parent 7f929e4ef4
commit 19252a52bb
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
top=$(git rev-parse --show-toplevel 2>/dev/null | sed -e 's/\//\\\//g')
if [ -n "$top" ]
then
path=$(pwd | sed -e "s/^$top//")
path=$(pwd -P | sed -e "s/^$top//")
if [ ! -z "$path" ]
then echo -n "$path "
fi