updates dolt commit to properly display skip empty commit message

This commit is contained in:
Stephanie You
2023-06-15 17:41:07 -07:00
parent a803adbc9a
commit 65719c7246
2 changed files with 11 additions and 3 deletions

View File

@@ -110,8 +110,9 @@ teardown() {
[ $original_head != $new_head ]
# When no changes are staged, --skip-empty skips creating the commit
dolt commit --skip-empty -m "commit message"
run dolt commit --skip-empty -m "commit message"
[ $new_head = $(get_head_commit) ]
[[ "$output" =~ "Skipping empty commit" ]] || false
}
@test "commit: -f works correctly" {