Modify post-commit hook to skip rebase commits