libsanitizer: use git clone --depth 1
authorMartin Liska <mliska@suse.cz>
Tue, 15 Nov 2022 13:18:27 +0000 (14:18 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 15 Nov 2022 13:18:27 +0000 (14:18 +0100)
Using depth == 1 it makes the cloning much faster.

libsanitizer/ChangeLog:

* merge.sh: Use git clone --depth 1.

libsanitizer/merge.sh

index 95ded4f..7d1b553 100755 (executable)
@@ -6,7 +6,7 @@
 
 get_upstream() {
   rm -rf upstream
-  git clone https://github.com/llvm/llvm-project.git upstream
+  git clone --depth 1 https://github.com/llvm/llvm-project.git upstream
 }
 
 get_current_rev() {