summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/download.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-03-26 17:13:25 +1100
committerChris Johns <chrisj@rtems.org>2014-03-26 17:13:47 +1100
commit8c19df26f679f53f22144c43b3141278e19da80e (patch)
treeb74d59e2a0bdf15867fbd90164e83b491a41ff6a /source-builder/sb/download.py
parentconfig: Build without zlib due to errors in psim. (diff)
downloadrtems-source-builder-8c19df26f679f53f22144c43b3141278e19da80e.tar.bz2
sb: Fix git to clean before updating.
Diffstat (limited to 'source-builder/sb/download.py')
-rw-r--r--source-builder/sb/download.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py
index 53de8df..7457235 100644
--- a/source-builder/sb/download.py
+++ b/source-builder/sb/download.py
@@ -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:]: