Commit 9af14886 by Carlos Martín Nieto

MSVC is silly

parent fc78488b
......@@ -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);
......
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