diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2958,14 +2958,14 @@ class MetaProject(Project): | |||
2958 | self.revisionExpr = base | 2958 | self.revisionExpr = base |
2959 | self.revisionId = None | 2959 | self.revisionId = None |
2960 | 2960 | ||
2961 | def MetaBranchSwitch(self): | 2961 | def MetaBranchSwitch(self, submodules=False): |
2962 | """ Prepare MetaProject for manifest branch switch | 2962 | """ Prepare MetaProject for manifest branch switch |
2963 | """ | 2963 | """ |
2964 | 2964 | ||
2965 | # detach and delete manifest branch, allowing a new | 2965 | # detach and delete manifest branch, allowing a new |
2966 | # branch to take over | 2966 | # branch to take over |
2967 | syncbuf = SyncBuffer(self.config, detach_head=True) | 2967 | syncbuf = SyncBuffer(self.config, detach_head=True) |
2968 | self.Sync_LocalHalf(syncbuf) | 2968 | self.Sync_LocalHalf(syncbuf, submodules=submodules) |
2969 | syncbuf.Finish() | 2969 | syncbuf.Finish() |
2970 | 2970 | ||
2971 | return GitCommand(self, | 2971 | return GitCommand(self, |