detecting a failing git dir when git fetch fails