OK, I see what you mean. You are right, I should use IGitModule instead. The reason I cast it to GitModule is that IGitModule does not contain IsRunningGitProcess. I used that as a shortcut to prove the concept, but later I didn't catch in my review before submiting the pull request. Would it be OK to add the IsRunningGitProcess() method to the IGitModule interface?