cleanup before checking out master
This commit is contained in:
parent
9cfdbbb8fe
commit
d75dcdd2fb
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue