updated: clean untracked nested git repos (#25917)

* updated: clean untracked nested git repos

* ff all the cleans
old-commit-hash: 4e32387ce5b916df1a62ddb695c0cd10ba6f4f38
This commit is contained in:
Adeeb Shihadeh
2022-09-28 16:33:42 -07:00
committed by GitHub
parent 1bade71c4f
commit 33508cd811
4 changed files with 5 additions and 21 deletions
-16
View File
@@ -1,16 +0,0 @@
#!/usr/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $DIR/..
git clean -xdf .
git rm -r --cached .
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin master
git checkout master
git reset --hard
git submodule update --init
printf '\n\n'
echo "master checked out. reboot to start building openpilot master"