Correct a stale reference to GIT_EBAREINDEX

Fixes #2223.