scripts/kernel_bump: Delete merge commit
authorOlliver Schinagl <oliver@schinagl.nl>
Mon, 18 Mar 2024 13:03:59 +0000 (14:03 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 12 Apr 2024 16:20:53 +0000 (18:20 +0200)
While we have included the needed changes via a merge commit, there is
no need to keep it. Lets drop the merge commit, which we can do as we
haven't pushed anything.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
scripts/kernel_bump.sh

index 1a6e5e5ea768a18d57d17e4c782f553b07963fde..0a123ea95ab6f66147a60b22ec8308eaee97a706 100755 (executable)
@@ -171,6 +171,8 @@ bump_kernel()
        git switch "${initial_branch:?Unable to switch back to original branch. Quitting.}"
        GIT_EDITOR=true git merge --no-ff '__openwrt_kernel_files_mover'
        git branch --delete '__openwrt_kernel_files_mover'
+       echo "Deleting merge commit ($(git rev-parse HEAD))."
+       git rebase HEAD~1
 
        echo "Original commitish was '${initial_commitish}'."
        echo 'Kernel bump complete. Remember to use `git log --follow`.'