Fix #4767

Actually use `rev` argument in modules.git.rebase()