mono / ngit

Automated jgit port to c#
261 stars 152 forks source link

Use Environment.OSVersion.Platform to determine if running on Unix instead of trying the Mono.Posix API #22

Closed linquize closed 12 years ago

linquize commented 12 years ago

because it may fail due to other exceptions before EntryPointNotFoundException occurs, then it will never succeed in Windows. And also, Exception in Windows is very expensive.

alanmcgovern commented 12 years ago

Actually this check is fine as long as it's used only to check whether or not the platform is windows. I merged these changes in with some minor modifications.

Thanks!