]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - continuous/steps/10-clone
Add scripts to setup environment for automated tests
[can-benchmark.git] / continuous / steps / 10-clone
diff --git a/continuous/steps/10-clone b/continuous/steps/10-clone
new file mode 100755 (executable)
index 0000000..6d489ee
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+REPO=${REPO:-git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git}
+
+if [ ! -d linux ]; then
+    git clone --reference ~/src/linux/master $REPO linux
+fi
+
+cd linux
+git fetch $REPO
+git reset --hard FETCH_HEAD