Ignored error when git restore --staged fails when there is no commit

This commit is contained in:
overengineer 2021-10-08 07:36:29 +03:00
parent e0101470ca
commit 3f2ad3fa8f

View file

@ -68,7 +68,7 @@ if [[ $ALL == true ]]; then
# Restore staging area so that, for example,
# add and modify will not be separate entries in status
git restore --staged .
git restore --staged . || true
git add .
fi