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:
parent
9238ee2e1a
commit
a6f840e7ba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue