Better handling for invalid scm types
Merge pull request #28 from rnc/master

Better handling for invalid scm types