summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/devtool/__init__.py2
-rw-r--r--scripts/lib/devtool/upgrade.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index d39c474fbd..6ebe368a9e 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -196,7 +196,7 @@ def setup_git_repo(repodir, version, devbranch, basetag='devtool-base', d=None):
196 if not os.path.exists(os.path.join(repodir, '.git')): 196 if not os.path.exists(os.path.join(repodir, '.git')):
197 bb.process.run('git init', cwd=repodir) 197 bb.process.run('git init', cwd=repodir)
198 bb.process.run('git config --local gc.autodetach 0', cwd=repodir) 198 bb.process.run('git config --local gc.autodetach 0', cwd=repodir)
199 bb.process.run('git add .', cwd=repodir) 199 bb.process.run('git add -f -A .', cwd=repodir)
200 commit_cmd = ['git'] 200 commit_cmd = ['git']
201 oe.patch.GitApplyTree.gitCommandUserOptions(commit_cmd, d=d) 201 oe.patch.GitApplyTree.gitCommandUserOptions(commit_cmd, d=d)
202 commit_cmd += ['commit', '-q'] 202 commit_cmd += ['commit', '-q']
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index f962a71e41..ebe72282bb 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -235,14 +235,14 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee
235 # Copy in new ones 235 # Copy in new ones
236 _copy_source_code(tmpsrctree, srctree) 236 _copy_source_code(tmpsrctree, srctree)
237 237
238 (stdout,_) = __run('git ls-files --modified --others --exclude-standard') 238 (stdout,_) = __run('git ls-files --modified --others')
239 filelist = stdout.splitlines() 239 filelist = stdout.splitlines()
240 pbar = bb.ui.knotty.BBProgress('Adding changed files', len(filelist)) 240 pbar = bb.ui.knotty.BBProgress('Adding changed files', len(filelist))
241 pbar.start() 241 pbar.start()
242 batchsize = 100 242 batchsize = 100
243 for i in range(0, len(filelist), batchsize): 243 for i in range(0, len(filelist), batchsize):
244 batch = filelist[i:i+batchsize] 244 batch = filelist[i:i+batchsize]
245 __run('git add -A %s' % ' '.join(['"%s"' % item for item in batch])) 245 __run('git add -f -A %s' % ' '.join(['"%s"' % item for item in batch]))
246 pbar.update(i) 246 pbar.update(i)
247 pbar.finish() 247 pbar.finish()
248 248