Only check if .git exists, not more

`git worktree` has `.git` as a file, not a directory.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-08-19 23:02:39 +01:00
parent 9238ee2e1a
commit a6f840e7ba

View file

@ -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