From: Uwe Hermann Date: Wed, 10 Sep 2014 07:29:56 +0000 (+0200) Subject: new-driver: Use "git clone --depth 1". X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1684b33d22f48c31dd8f49d42356bb3bb7757d80;p=sigrok-util.git new-driver: Use "git clone --depth 1". This reduces network load and speeds up the script. --- diff --git a/source/new-driver b/source/new-driver index 9d5c4be..45906b3 100755 --- a/source/new-driver +++ b/source/new-driver @@ -67,7 +67,7 @@ def new_driver(): tmp = tempfile.mkdtemp() try: os.chdir(tmp) - process = Popen("git clone " + LIBSR, shell=True, stderr=PIPE) + process = Popen("git clone --depth=1 " + LIBSR, shell=True, stderr=PIPE) out, err = process.communicate() if process.returncode: raise Exception(err.decode())