]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/submodule--helper.c
config: add --comment option to add a comment
[thirdparty/git.git] / builtin / submodule--helper.c
index fda50f2af1e33277161f819f560b4d8164d284a0..e4e18adb575ca2b5d180aa4ec420066e7455f4ce 100644 (file)
@@ -1283,7 +1283,7 @@ static void sync_submodule(const char *path, const char *prefix,
        submodule_to_gitdir(&sb, path);
        strbuf_addstr(&sb, "/config");
 
-       if (git_config_set_in_file_gently(sb.buf, remote_key, sub_origin_url))
+       if (git_config_set_in_file_gently(sb.buf, remote_key, NULL, sub_origin_url))
                die(_("failed to update remote for submodule '%s'"),
                      path);