mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 18:44:31 +00:00
MSVC is silly
This commit is contained in:
parent
fc78488b3d
commit
9af14886a9
@ -526,10 +526,10 @@ const char *git_submodule_url(git_submodule *submodule)
|
||||
|
||||
int git_submodule_resolve_url(git_buf *out, git_repository *repo, const char *url)
|
||||
{
|
||||
assert(url);
|
||||
|
||||
int error = 0;
|
||||
|
||||
assert(url);
|
||||
|
||||
if (url[0] == '.' && (url[1] == '/' || (url[1] == '.' && url[2] == '/'))) {
|
||||
if (!(error = lookup_head_remote(out, repo)))
|
||||
error = git_path_apply_relative(out, url);
|
||||
|
Loading…
Reference in New Issue
Block a user