summaryrefslogtreecommitdiff
path: root/tests/network/refspecs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/network/refspecs.c')
-rw-r--r--tests/network/refspecs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/network/refspecs.c b/tests/network/refspecs.c
index fd85ca015..15d36245b 100644
--- a/tests/network/refspecs.c
+++ b/tests/network/refspecs.c
@@ -111,6 +111,11 @@ 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;