启动Clone线程 :param cls:
(cls, parent=None)
| 168 | |
| 169 | @classmethod |
| 170 | def start(cls, parent=None): |
| 171 | """启动Clone线程 |
| 172 | :param cls: |
| 173 | """ |
| 174 | cls._thread = QThread(parent) |
| 175 | cls._worker = CloneThread() |
| 176 | cls._worker.moveToThread(cls._thread) |
| 177 | cls._thread.started.connect(cls._worker.run) |
| 178 | cls._thread.finished.connect(cls._worker.deleteLater) |
| 179 | cls._thread.start() |
| 180 | AppLog.info('clone thread started') |
| 181 | |
| 182 | def pull(self, repo, remote_name='origin', branch='master'): |
| 183 | """ pull changes for the specified remote (defaults to origin). |
nothing calls this directly
no test coverage detected