mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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
This commit is contained in:
parent
203153e7bb
commit
2598ed06f1
@ -1754,7 +1754,7 @@ class Project(object):
|
|||||||
objdir=objdir,
|
objdir=objdir,
|
||||||
worktree=worktree,
|
worktree=worktree,
|
||||||
relpath=relpath,
|
relpath=relpath,
|
||||||
revisionExpr=self.revisionExpr,
|
revisionExpr=rev,
|
||||||
revisionId=rev,
|
revisionId=rev,
|
||||||
rebase=self.rebase,
|
rebase=self.rebase,
|
||||||
groups=self.groups,
|
groups=self.groups,
|
||||||
|
Loading…
Reference in New Issue
Block a user