bugfix: git_parse_ahead crashed without remote