mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
Ignored error when git restore --staged fails when there is no commit
This commit is contained in:
parent
e0101470ca
commit
3f2ad3fa8f
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue