From 21cb9eeaa6f49e470acd63a6a645e9435f997b20 Mon Sep 17 00:00:00 2001 From: ojas1 Date: Tue, 1 Sep 2020 18:00:45 +0530 Subject: [PATCH] depth 1 --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 8ae9ab13..9c1b353f 100644 --- a/main.js +++ b/main.js @@ -267,7 +267,7 @@ function iiithexp_clone(experiments, exp_dir, common_repo_name) { child_process.execSync(`mkdir -p ${exp_dir}/${ename}`); child_process.execSync( `cd ${exp_dir}/${ename}; rm -rf ${common_repo_name}; - git clone ${e.repo}/${common_repo_name}; cd ${common_repo_name}; git fetch --all; git checkout ${e.tag}` + git clone --depth 1 ${e.repo}/${common_repo_name}; cd ${common_repo_name}; git fetch --all; git checkout ${e.tag}` ); console.log('cloned'); });