scripts/create_changelog.sh: allow script to run in worktrees

(cherry picked from commit a201c43cc0f952dc05e2d7029eb1257e280fc3d2)
This commit is contained in:
Juergen E. Fischer 2023-07-21 14:12:09 +02:00
parent 22c392c0ff
commit 3eeaf5b96c

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Convert git log to GNU-style ChangeLog file.
# (C) Chris
if test -d ".git"; then
if test -e ".git"; then
git log --date-order --date=short | \
sed -e '/^commit.*$/d' | \
awk '/^Author/ {sub(/\\$/,""); getline t; print $0 t; next}; 1' | \