From 0bed1e98490cc16bbfac0e045d42065313c82e43 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 3 Dec 2019 14:59:06 +0100 Subject: [PATCH] git: fixed issue with git submodules detection. --- rhodecode/lib/vcs/backends/git/commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/vcs/backends/git/commit.py b/rhodecode/lib/vcs/backends/git/commit.py index 51f11cd7..527d4498 100644 --- a/rhodecode/lib/vcs/backends/git/commit.py +++ b/rhodecode/lib/vcs/backends/git/commit.py @@ -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)