added patch to depot tools
This commit is contained in:
parent
9b3dc051cb
commit
ad75ab97d8
@ -1,10 +1,9 @@
|
||||
diff --git a/gclient_scm.py b/gclient_scm.py
|
||||
index 8a3410a8..f94af977 100644
|
||||
--- a/gclient_scm.py
|
||||
+++ b/gclient_scm.py
|
||||
@@ -1012,28 +1012,35 @@ class GitWrapper(SCMWrapper):
|
||||
gclient_utils.safe_makedirs(parent_dir)
|
||||
|
||||
|
||||
template_dir = None
|
||||
+ use_fetch = False
|
||||
+
|
||||
@ -37,7 +36,7 @@ index 8a3410a8..f94af977 100644
|
||||
else:
|
||||
# Otherwise, we're just interested in the HEAD. Just use --depth.
|
||||
clone_cmd.append('--depth=1')
|
||||
|
||||
|
||||
- tmp_dir = tempfile.mkdtemp(
|
||||
- prefix='_gclient_%s_' % os.path.basename(self.checkout_path),
|
||||
- dir=parent_dir)
|
||||
@ -52,7 +51,7 @@ index 8a3410a8..f94af977 100644
|
||||
@@ -1328,6 +1335,9 @@ class GitWrapper(SCMWrapper):
|
||||
if refspec:
|
||||
fetch_cmd.append(refspec)
|
||||
|
||||
|
||||
+ if hasattr(options, 'no_history') and options.no_history:
|
||||
+ fetch_cmd.append('--depth=1')
|
||||
+
|
||||
|
@ -19,6 +19,12 @@ echo -e ${RED} -------- lastest version is: $VERSION ${NC}
|
||||
|
||||
cd ..
|
||||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||
|
||||
# apply patchs
|
||||
cd depot_tools/
|
||||
git apply ../bromite-buildtools/depot_tools.diff
|
||||
cd ..
|
||||
|
||||
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
|
||||
|
||||
env
|
||||
|
Loading…
Reference in New Issue
Block a user