handle git subrepos, and add a test for it