[FIX] point_of_sale: Fix cleaning git between 2 version of iot

When iot switch between 2 version of odoo we must clean correctly the branch.

Now -dfx erases each and every file in git directory which is not part of repository.
(like drivers and interfaces)

closes odoo/odoo#95698

X-original-commit: c115f9f873c8ae46b079684ac90fcd6ab9fcadad
Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
lejeune quentin
2022-07-11 17:58:26 +02:00
parent c5eb1b0274
commit 245b073659
@@ -13,7 +13,7 @@ echo "addons/point_of_sale/tools/posbox/overwrite_after_init/home/pi/odoo" >> .g
git fetch "${localremote}" "${localbranch}" --depth=1
git reset "${localremote}"/"${localbranch}" --hard
git clean -df
git clean -dfx
cp -a /home/pi/odoo/addons/point_of_sale/tools/posbox/overwrite_after_init/home/pi/odoo/* /home/pi/odoo/
rm -r /home/pi/odoo/addons/point_of_sale/tools/posbox/overwrite_after_init