Skip to content

Commit

Permalink
Git shallow clone does not work in fast-setup.sh (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
dayeol committed Sep 2, 2020
1 parent c84cade commit ba90c92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fast-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ echo "Updating and cloning submodules, this may take a long time"
git config submodule.riscv-gnu-toolchain.update none

# shallow clone submodules ahead of time (Git must be > 2.11)
if [ ! -d linux ]; then
if [ ! -e linux/.git ]; then
git clone --shallow-since=2019-09-14 https://github.com/torvalds/linux.git linux
fi
if [ ! -d buildroot ]; then
if [ ! -e buildroot/.git ]; then
git clone --shallow-since=2019-08-29 https://github.com/buildroot/buildroot.git buildroot
fi
if [ ! -d qemu ]; then
if [ ! -e qemu/.git ]; then
git clone --shallow-since=2018-08-14 https://github.com/qemu/qemu.git qemu
fi

Expand Down

0 comments on commit ba90c92

Please sign in to comment.