Commit a6f840e7 authored by Maxime Buquet's avatar Maxime Buquet

Only check if `.git` exists, not more

`git worktree` has `.git` as a file, not a directory.
Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 9238ee2e
......@@ -5,7 +5,7 @@ then
POEZIO_VENV="poezio-venv"
fi
if [ -d .git ]
if [ -e .git ]
then
args=$(git show --format='%h %ci' | head -n1)
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment