From 3eeaf5b96cc2923da5ab91567ed42777f7b570f0 Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Fri, 21 Jul 2023 14:12:09 +0200 Subject: [PATCH] scripts/create_changelog.sh: allow script to run in worktrees (cherry picked from commit a201c43cc0f952dc05e2d7029eb1257e280fc3d2) --- scripts/create_changelog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_changelog.sh b/scripts/create_changelog.sh index 8277b5d80b5..95e0899ec33 100755 --- a/scripts/create_changelog.sh +++ b/scripts/create_changelog.sh @@ -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' | \