]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - continuous/steps/10-clone
Add scripts to setup environment for automated tests
[can-benchmark.git] / continuous / steps / 10-clone
1 #!/bin/sh
2
3 set -e
4
5 REPO=${REPO:-git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git}
6
7 if [ ! -d linux ]; then
8     git clone --reference ~/src/linux/master $REPO linux
9 fi
10
11 cd linux
12 git fetch $REPO
13 git reset --hard FETCH_HEAD