Basic submodule support (treats submodules as bare repos)
Test for {repo} before testing for {branch}; this ensures submodules do not get mistaken for branch names
Merge pull request #2 from lionello/submodules

Submodules