Broken git changes in 3.4.x

@deanrie for me still broken on 3.9.16, but in this bug report here is probably the root cause Agents Window cannot open Git repository - #36 by bittwist