rebase-i-p: use HEAD for updating the ref instead of mapping OLDHEAD