Commit 71fafae1 by yuangli

tests: error when create branch with invalid name

parent e4f98ac4
......@@ -277,3 +277,11 @@ void test_refs_branches_create__name_vs_namespace_fail(void)
branch = NULL;
}
}
void test_refs_branches_create__error_when_create_branch_with_invalid_name(void)
{
retrieve_known_commit(&target, repo);
cl_git_fail(git_branch_create(&branch, repo, "HEAD", target, 0));
cl_git_fail(git_branch_create(&branch, repo, "-dash", target, 0));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment