diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -573,7 +573,7 @@ class Project(object): | |||
| 573 | for file in self.copyfiles: | 573 | for file in self.copyfiles: |
| 574 | file._Copy() | 574 | file._Copy() |
| 575 | 575 | ||
| 576 | def Sync_LocalHalf(self): | 576 | def Sync_LocalHalf(self, detach_head=False): |
| 577 | """Perform only the local IO portion of the sync process. | 577 | """Perform only the local IO portion of the sync process. |
| 578 | Network access is not required. | 578 | Network access is not required. |
| 579 | 579 | ||
| @@ -594,7 +594,7 @@ class Project(object): | |||
| 594 | 594 | ||
| 595 | branch = self.CurrentBranch | 595 | branch = self.CurrentBranch |
| 596 | 596 | ||
| 597 | if branch is None: | 597 | if branch is None or detach_head: |
| 598 | # Currently on a detached HEAD. The user is assumed to | 598 | # Currently on a detached HEAD. The user is assumed to |
| 599 | # not have any local modifications worth worrying about. | 599 | # not have any local modifications worth worrying about. |
| 600 | # | 600 | # |
