git-remote: reject adding remotes with invalid names
[git/git.git] / t / t5505-remote.sh
index 0a7fea8..af2d077 100755 (executable)
@@ -253,4 +253,10 @@ test_expect_success '"remote show" does not show symbolic refs' '
 
 '
 
+test_expect_success 'reject adding remote with an invalid name' '
+
+       ! git remote add some:url desired-name
+
+'
+
 test_done