diff options
Diffstat (limited to 'project.py')
| -rwxr-xr-x | project.py | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -1310,6 +1310,16 @@ class Project(object): | |||
| 1310 | submodules=submodules)): | 1310 | submodules=submodules)): |
| 1311 | return False | 1311 | return False |
| 1312 | 1312 | ||
| 1313 | mp = self.manifest.manifestProject | ||
| 1314 | dissociate = mp.config.GetBoolean('repo.dissociate') | ||
| 1315 | if dissociate: | ||
| 1316 | alternates_file = os.path.join(self.gitdir, 'objects/info/alternates') | ||
| 1317 | if os.path.exists(alternates_file): | ||
| 1318 | cmd = ['repack', '-a', '-d'] | ||
| 1319 | if GitCommand(self, cmd, bare=True).Wait() != 0: | ||
| 1320 | return False | ||
| 1321 | platform_utils.remove(alternates_file) | ||
| 1322 | |||
| 1313 | if self.worktree: | 1323 | if self.worktree: |
| 1314 | self._InitMRef() | 1324 | self._InitMRef() |
| 1315 | else: | 1325 | else: |
