There's a PR in libgit2. I however don't think `failing` should contain anything. That reference gets overwritten, as it doesn't belong to a repository.