diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-04-05 10:49:49 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-05 10:49:49 -0700 |
| commit | 3256584c36f649abb2af58e7b190d3cf674ba56e (patch) | |
| tree | 032547196dd3036dbbbe315621782dcf804d486e /builtin/submodule--helper.c | |
| parent | The fourteenth batch (diff) | |
| parent | config: allow tweaking whitespace between value and comment (diff) | |
| download | git-3256584c36f649abb2af58e7b190d3cf674ba56e.tar.gz git-3256584c36f649abb2af58e7b190d3cf674ba56e.zip | |
Merge branch 'rs/config-comment'
"git config" learned "--comment=<message>" option to leave a
comment immediately after the "variable = value" on the same line
in the configuration file.
* rs/config-comment:
config: allow tweaking whitespace between value and comment
config: fix --comment formatting
config: add --comment option to add a comment
Diffstat (limited to 'builtin/submodule--helper.c')
| -rw-r--r-- | builtin/submodule--helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index fda50f2af1..e4e18adb57 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -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); |
