One has to work hard to trigger this one.
git init foo
cd foo
>.git/refs/heads/master
git branch -h
Produces:
fatal: Failed to resolve HEAD as a valid ref.
git init foo
cd foo
>.git/index
git checkout-index -h
Produces:
fatal: index file smaller than expected
I'm stopping here. But maybe some test cases like this would make the
series clearer.
Hope that helps,
Jonathan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html