git: fixed issue with git submodules detection.

This commit is contained in:
Marcin Kuzminski 2019-12-03 14:59:06 +01:00
parent 62724b55c2
commit 0bed1e9849

View file

@ -348,7 +348,7 @@ class GitCommit(base.BaseCommit):
"Cannot find one of parents' directories for a given "
"path: %s" % path)
if type_ == 'link':
if type_ in ['link', 'commit']:
url = self._get_submodule_url(path)
node = SubModuleNode(path, url=url, commit=tree_id,
alias=self.repository.alias)