Revert "Revert "Fix Git repository plugin test failures on Windows""

See #896 for discussion.