From 19252a52bb2552a797d204fea031a89291110161 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 7 Feb 2020 13:15:51 +0100 Subject: [PATCH] Fix gitpath for PWDs with symlinks --- bin/gitpath | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gitpath b/bin/gitpath index eaf74c5..59f11ec 100755 --- a/bin/gitpath +++ b/bin/gitpath @@ -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