From 2598ed06f1907b2657ae714adc2073b3b2aeda34 Mon Sep 17 00:00:00 2001 From: Aymen Bouaziz Date: Fri, 24 Jun 2016 14:34:08 +0200 Subject: [PATCH] Fix submodule checkout error when using sync-s option When sync-s="true" option is used, the checkout of a submodule will try to use the revision attribute of the parent project. If this revision is a named reference, the checkout will fail if there is no reference with this name in the submodule. The proposed solution is to use the git commit id as revisionExpr for submodules. Change-Id: Ie8390a11957fd6a9c61289c6861d13cb3fa11678 --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.py b/project.py index d54e336c..fa4e7cea 100644 --- a/project.py +++ b/project.py @@ -1754,7 +1754,7 @@ class Project(object): objdir=objdir, worktree=worktree, relpath=relpath, - revisionExpr=self.revisionExpr, + revisionExpr=rev, revisionId=rev, rebase=self.rebase, groups=self.groups,