improve: wait for git to finish rebase