git-p4: add config git-p4.pathEncoding
[gitweb.git] / git-rebase--interactive.sh
index dc3133f681227e66dd54f7bed4be68277e4240b3..5ff0f1c81ac8e72ce6a2358ca2fced0650571030 100644 (file)
@@ -849,7 +849,11 @@ continue)
        # do we have anything to commit?
        if git diff-index --cached --quiet HEAD --
        then
-               : Nothing to commit -- skip this
+               # Nothing to commit -- skip this commit
+
+               test ! -f "$GIT_DIR"/CHERRY_PICK_HEAD ||
+               rm "$GIT_DIR"/CHERRY_PICK_HEAD ||
+               die "Could not remove CHERRY_PICK_HEAD"
        else
                if ! test -f "$author_script"
                then