summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorAymen Bouaziz <aymen.bouaziz@parrot.com>2016-06-24 14:34:08 +0200
committerAymen Bouaziz <aymen.bouaziz@parrot.com>2016-06-27 20:16:45 +0200
commit2598ed06f1907b2657ae714adc2073b3b2aeda34 (patch)
treea60e2ef9da57d8d71216da6d7f5b33d7695ca791 /project.py
parent203153e7bba61b1b2d782e9e75aef919eab0d54b (diff)
downloadgit-repo-2598ed06f1907b2657ae714adc2073b3b2aeda34.tar.gz
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
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
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):
1754 objdir=objdir, 1754 objdir=objdir,
1755 worktree=worktree, 1755 worktree=worktree,
1756 relpath=relpath, 1756 relpath=relpath,
1757 revisionExpr=self.revisionExpr, 1757 revisionExpr=rev,
1758 revisionId=rev, 1758 revisionId=rev,
1759 rebase=self.rebase, 1759 rebase=self.rebase,
1760 groups=self.groups, 1760 groups=self.groups,