sb: Fix git to clean before updating.

This commit is contained in:
Chris Johns
2014-03-26 17:13:25 +11:00
parent b77019a91e
commit 8c19df26f6
3 changed files with 8 additions and 2 deletions

View File

@@ -211,6 +211,7 @@ def _git_downloader(url, local, config, opts):
if not opts.dry_run():
repo.clone(us[0], local)
else:
repo.clean(['-f', '-d'])
repo.reset('--hard')
repo.checkout('master')
for a in us[1:]: