Restore the commit between assertion blocks
```git-check-assertions run ./test/git-check-assertions.bats assert_success git checkout HEAD~ bin run ./test/git-check-assertions.bats assert_failure assert_output --partial "not ok 10 should restore the commit between assertion blocks in one commit message" ```
This commit is contained in:
parent
7e483b8a7f
commit
35584c9aa7
2 changed files with 26 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ for commit_hash in "${commits[@]}"; do
|
|||
exit 1
|
||||
fi
|
||||
restore
|
||||
git -c advice.detachedHead=false checkout -q "$commit_hash"
|
||||
done
|
||||
printf '%s\n' "$commit_hash" >>.git-check-assertions-cache
|
||||
echo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue