Skip to content

Commit

Permalink
Also restore index for check
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 committed Jun 22, 2022
1 parent 195ac4a commit 7d41443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maintainers/patches
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ check() {
local root="$(get_root "${module}")"
( set -e
cd third_party/"${module}"
git commit --allow-empty -qmi
git add .
git commit --allow-empty -qmx
local top="$(get_head)"
Expand All @@ -163,6 +164,7 @@ check() {
local r; if git diff "${top}" --quiet; then r=0; else r=1; fi
git checkout -q "${top}"
git reset -q HEAD~
git reset -q --soft HEAD~
[[ "${r}" -eq 0 ]] \
|| fail "The ${module} submodule differs from its patches."
)
Expand Down

0 comments on commit 7d41443

Please sign in to comment.