From b7251e54a09d8f05fc73127fdeb983229d640bad Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 1 May 2022 14:40:02 -0700 Subject: [PATCH] Avoid using git to get project root --- test/formatters/run-func.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/formatters/run-func.bash b/test/formatters/run-func.bash index 22e7489..83ef348 100755 --- a/test/formatters/run-func.bash +++ b/test/formatters/run-func.bash @@ -2,7 +2,10 @@ set -euo pipefail +# Avoid using git to get project directory, due to +# https://github.com/raxod502/apheleia/pull/89#issuecomment-1107319617 + cd "$(dirname "$0")" -repo="$(git rev-parse --show-toplevel)" +repo="$(cd ../.. && pwd)" exec emacs --batch -L "${repo}" -L . -l apheleia-ft -f "$1"