linquize/ngit — comment on commit 659961e16cf3d16723bd22798cca6855833b5347
File:  line 0
By alanmcgovern:

I'm open to using another method of detecting OS as this was just the simplest way of making it work for MonoDevelops use case, but unfortunately it is not safe to rely on Environment.OSVersion.Platform. The code as-is will not work under Mono I think.

As for exceptions, the current code should only throw one exception and will then set the boolean to false which means future calls will avoid the path throwing the exception.