Fixes creating a Repo for a submodule

Fixes #155.
Merge pull request #156 from remram44/fix-git-in-submodule

Fixes creating a Repo for a submodule (#155)