Commit 46c9f26f by Nelson Elhage

Add a test.

Verified that this breaks before the fix and passes afterwards.
parent 786c6470
......@@ -111,6 +111,10 @@ void test_network_refspecs__transform_mid_star(void)
assert_valid_transform("refs/*:refs/*", "refs/heads/master", "refs/heads/master");
}
void test_network_refspecs__no_dst(void) {
assert_valid_transform("refs/heads/master:", "refs/heads/master", "");
}
static void assert_invalid_transform(const char *refspec, const char *name)
{
git_refspec spec;
......
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