[PATCH 107/144] check for .git/rebase-merge to detect ongoing git rebase
authorAndreas Beckmann <anbe@debian.org>
Wed, 1 Dec 2021 18:39:05 +0000 (19:39 +0100)
committerAndreas Beckmann <anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
.git/ORIG_HEAD may be a stale file

Gbp-Pq: Name 0107-check-for-.git-rebase-merge-to-detect-ongoing-git-re.patch

tools/scripts/format-last-commit.sh

index d1414e488f65d0819f313149ee559d9cdbd3c682..5bd5e78f8451521a32a708616be9ffe5114b382b 100755 (executable)
@@ -28,7 +28,7 @@ if [ "$REPLY" == "y" ]; then
 
   git commit --amend
 
-  if [ -e .git/ORIG_HEAD ]; then
+  if [ -d .git/rebase-merge ]; then
 
     git rebase --continue