Skip to content

Commit

Permalink
[FIX] point_of_sale: Fix cleaning git between 2 version of iot
Browse files Browse the repository at this point in the history
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#95698

X-original-commit: c115f9f
Signed-off-by: Masereel Pierre <pim@odoo.com>
  • Loading branch information
qle-odoo committed Jul 11, 2022
1 parent c5eb1b0 commit 245b073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 245b073

Please sign in to comment.