mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-20 04:07:26 +00:00
remote: Warn the user when connecting with no url
This commit is contained in:
parent
b83c92dd6f
commit
44bc0c6ac3
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user