Fix fetch/pull when run without --update-head-ok