From 696e8e45e586b54e4fc634cab8d0f90c67fcf6a7 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Tue, 4 Nov 2014 17:11:42 +0000 Subject: Check for commit object in submodule path Fix checking for commit object in submodules which their path and name are not the same. --- morphlib/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morphlib/git.py b/morphlib/git.py index 70222acb..6a5a9a47 100644 --- a/morphlib/git.py +++ b/morphlib/git.py @@ -107,7 +107,7 @@ class Submodules(object): # list objects in the parent repo tree to find the commit # object that corresponds to the submodule commit = gitcmd(self.app.runcmd, 'ls-tree', self.ref, - submodule.name, cwd=self.repo) + submodule.path, cwd=self.repo) # read the commit hash from the output fields = commit.split() -- cgit v1.2.1