1 files changed, 1 insertions(+), 3 deletions(-)
M forge-link
M forge-link => forge-link +1 -3
@@ 24,10 24,8 @@ if [ ! -e "${file}" ]; then
exit 1
fi
-containing_dir=$(dirname "${file}")
-cd "${containing_dir}"
gitroot=$(git rev-parse --show-toplevel)
-abspath=$(realpath "${file}")
+abspath=$(readlink -e "${file}")
relpath=${abspath##${gitroot}}
sha1=$(git rev-parse HEAD)