show that revert branch name now fails to validate (#4570)

This commit is contained in:
Sebastian Thiel 2024-08-01 22:03:48 +02:00
parent 9476bf3b96
commit 37c81b991b
No known key found for this signature in database
GPG Key ID: 9CB5EE7895E8268B

View File

@ -37,6 +37,15 @@ mod normalize_branch_name {
normalize_branch_name("#[test]").unwrap_err().to_string(),
"Could not turn \"#[test]\" into a valid reference name"
);
let input = r#"Revert "GitButler Integration Commit"
This reverts commit d6efa5fd96d36da445d5d1345b84163f05f5f229."#;
let err = normalize_branch_name(input).unwrap_err().to_string();
assert_eq!(
err,
"Could not turn \"Revert-\\\"GitButler-Integration-Commit\\\"-This-reverts-commit-d6efa5fd96d36da445d5d1345b84163f05f5f229.\" into a valid reference name"
);
}
#[test]