1
0
Fork 0

cleanup before checking out master

This commit is contained in:
Mikhail Goncharov 2020-07-30 09:27:05 +02:00
parent 9cfdbbb8fe
commit d75dcdd2fb

View file

@ -145,10 +145,10 @@ class ApplyPatch:
return
logging.info('Syncing local, origin and upstream...')
self.repo.git.clean('-ffxdq')
self.repo.git.fetch('--all')
self.repo.git.checkout('master')
self.repo.git.reset('--hard')
self.repo.git.clean('-ffxdq')
if 'upstream' not in self.repo.remotes:
self.repo.create_remote('upstream', url=LLVM_GITHUB_URL)
self.repo.remotes.upstream.fetch()