From 153afbacffc06cad574ca474fddc954339ba047a Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Mon, 5 Oct 2015 22:19:58 +1100 Subject: [PATCH] Make sure you are in the git repo before doing the update. --- scripts/get-env.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/get-env.sh b/scripts/get-env.sh index f947c966..59a62a6e 100755 --- a/scripts/get-env.sh +++ b/scripts/get-env.sh @@ -103,9 +103,12 @@ export PATH=$CONDA_DIR/bin:$PATH ) # git submodules -git submodule update --recursive -git submodule foreach \ - git submodule update --recursive --init +( + cd $TOP_DIR + git submodule update --recursive + git submodule foreach \ + git submodule update --recursive --init +) # migen MIGEN_DIR=$THIRD_DIR/migen