summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r--scripts/lib/devtool/standard.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 6b5378176e..4dc175d117 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -23,6 +23,7 @@ import glob
23import tempfile 23import tempfile
24import logging 24import logging
25import argparse 25import argparse
26import scriptutils
26from devtool import exec_build_env_command, setup_tinfoil 27from devtool import exec_build_env_command, setup_tinfoil
27 28
28logger = logging.getLogger('devtool') 29logger = logging.getLogger('devtool')
@@ -236,12 +237,7 @@ def _extract_source(srctree, keep_temp, devbranch, d):
236 # Handle if S is set to a subdirectory of the source 237 # Handle if S is set to a subdirectory of the source
237 srcsubdir = os.path.join(workdir, os.path.relpath(srcsubdir, workdir).split(os.sep)[0]) 238 srcsubdir = os.path.join(workdir, os.path.relpath(srcsubdir, workdir).split(os.sep)[0])
238 239
239 if os.path.exists(os.path.join(srcsubdir, '.git')): 240 scriptutils.git_convert_standalone_clone(srcsubdir)
240 alternatesfile = os.path.join(srcsubdir, '.git', 'objects', 'info', 'alternates')
241 if os.path.exists(alternatesfile):
242 # This will have been cloned with -s, so we need to convert it to a full clone
243 bb.process.run('git repack -a', cwd=srcsubdir)
244 os.remove(alternatesfile)
245 241
246 patchdir = os.path.join(srcsubdir, 'patches') 242 patchdir = os.path.join(srcsubdir, 'patches')
247 haspatches = False 243 haspatches = False