verify that branch deletes don't overwrite dirty remotes

This commit is contained in:
Neil Macneale IV
2023-12-21 13:47:20 -08:00
parent e18f795e14
commit e69b4857fc

View File

@@ -590,6 +590,10 @@ GRANT CLONE_ADMIN ON *.* TO clone_admin_user@'localhost';
dolt clone http://localhost:$APIPORT/remote cloned_db -u $SQL_USER
cd cloned_db
run dolt push origin --user $SQL_USER :new_branch
[[ "$status" -ne 0 ]] || false
[[ "$output" =~ "target has uncommitted changes. --force required to overwrite" ]] || false
run dolt push origin --force --user $SQL_USER :new_branch
[[ "$status" -eq 0 ]] || false