Commit 44bc0c6a by nulltoken

remote: Warn the user when connecting with no url

parent b83c92dd
......@@ -558,8 +558,11 @@ int git_remote_connect(git_remote *remote, git_direction direction)
t = remote->transport;
url = git_remote__urlfordirection(remote, direction);
if (url == NULL )
if (url == NULL ) {
giterr_set(GITERR_INVALID,
"Malformed remote '%s' - missing URL", remote->name);
return -1;
}
/* A transport could have been supplied in advance with
* git_remote_set_transport */
......
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