diff options
| -rw-r--r-- | project.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -691,11 +691,11 @@ class Project(object): | |||
| 691 | """Perform only the local IO portion of the sync process. | 691 | """Perform only the local IO portion of the sync process. |
| 692 | Network access is not required. | 692 | Network access is not required. |
| 693 | """ | 693 | """ |
| 694 | self._InitWorkTree() | ||
| 695 | all = self.bare_ref.all | 694 | all = self.bare_ref.all |
| 696 | self.CleanPublishedCache(all) | 695 | self.CleanPublishedCache(all) |
| 697 | |||
| 698 | revid = self.GetRevisionId(all) | 696 | revid = self.GetRevisionId(all) |
| 697 | |||
| 698 | self._InitWorkTree() | ||
| 699 | head = self.work_git.GetHead() | 699 | head = self.work_git.GetHead() |
| 700 | if head.startswith(R_HEADS): | 700 | if head.startswith(R_HEADS): |
| 701 | branch = head[len(R_HEADS):] | 701 | branch = head[len(R_HEADS):] |
