We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95c8ce commit 85af9f7Copy full SHA for 85af9f7
builtin/remote.c
@@ -1565,9 +1565,7 @@ static int set_url(int argc, const char **argv)
1565
"^$", 0);
1566
else
1567
git_config_set(name_buf.buf, newurl);
1568
- strbuf_release(&name_buf);
1569
-
1570
- return 0;
+ goto out;
1571
}
1572
1573
/* Old URL specified. Demand that one matches. */
@@ -1590,6 +1588,8 @@ static int set_url(int argc, const char **argv)
1590
1588
git_config_set_multivar(name_buf.buf, newurl, oldurl, 0);
1591
1589
1592
git_config_set_multivar(name_buf.buf, NULL, oldurl, 1);
+out:
+ strbuf_release(&name_buf);
1593
return 0;
1594
1595
0 commit comments