scm: support git submodule

Fixes #1093
This commit is contained in:
Jeep Kiddee
2018-09-21 02:17:28 +07:00
parent 545ea1efa5
commit bbd5096de7
3 changed files with 38 additions and 4 deletions
+9
View File
@@ -61,6 +61,15 @@ class TestGit(TestDir):
self.git.index.commit('add code')
class TestGitSubmodule(TestGit):
def setUp(self):
super(TestGitSubmodule, self).setUp()
subrepo = Repo.init()
subrepo_path = 'subrepo'
self.git.create_submodule(subrepo_path, subrepo_path, subrepo.git_dir)
self._pushd(subrepo_path)
class TestDvc(TestGit):
def setUp(self):
super(TestDvc, self).setUp()