Ejemplo n.º 1
0
void test_network_remotes__parsing_local_path_fails_if_path_not_found(void)
{
	cl_assert( !git_remote_valid_url("/home/git/repos/libgit2.git") );
}
Ejemplo n.º 2
0
static inline void rugged_validate_remote_url(VALUE rb_url)
{
	Check_Type(rb_url, T_STRING);
	if (!git_remote_valid_url(StringValueCStr(rb_url)))
		rb_raise(rb_eArgError, "Invalid URL format");
}
Ejemplo n.º 3
0
void test_network_remotes__parsing_ssh_remote(void)
{
	cl_assert( git_remote_valid_url("[email protected]:libgit2/libgit2.git") );
}