Also unset GIT_INDEX_FILE for git fetch