summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/cleanProject.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/cleanProject.sh b/scripts/cleanProject.sh
index e7d8460e..49e2db44 100755
--- a/scripts/cleanProject.sh
+++ b/scripts/cleanProject.sh
@@ -6,6 +6,8 @@ BASE_DIR="$SCRIPT_DIR/.."
git checkout -- \*
git checkout -- \.\*
+git clean -xfd
+git submodule foreach --recursive git clean -xfd
rm -r $BASE_DIR/ics-openvpn
rm -r $BASE_DIR/build
rm -r $BASE_DIR/app/build
@@ -18,6 +20,7 @@ rm -r $BASE_DIR/tor-android/external/bin
rm -r $BASE_DIR/tor-android/external/include/
rm -r $BASE_DIR/tor-android/external/*.build-stamp
rm -r $BASE_DIR/tor-android/external/lib
+git reset --hard
git submodule foreach --recursive git reset --hard HEAD
git submodule sync --recursive
git submodule update --init --recursive