diff options
author | 2021-03-22 14:00:23 -0700 | |
---|---|---|
committer | 2021-03-22 14:00:23 -0700 | |
commit | 52182e3b1f3e9b840c9297f7aba58ad44bc0b5f2 (patch) | |
tree | 1bd10dd2d5720f5febff87b27d809acb53052a67 /builtin | |
parent | Merge branch 'mt/cleanly-die-upon-missing-required-filter' (diff) | |
parent | remote: write camel-cased *.pushRemote on rename (diff) | |
download | tgif-52182e3b1f3e9b840c9297f7aba58ad44bc0b5f2.tar.xz |
Merge branch 'ab/remote-write-config-in-camel-case'
Update C code that sets a few configuration variables when a remote
is configured so that it spells configuration variable names in the
canonical camelCase.
* ab/remote-write-config-in-camel-case:
remote: write camel-cased *.pushRemote on rename
remote: add camel-cased *.tagOpt key, like clone
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index d11a5589e4..717b662d45 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -221,7 +221,7 @@ static int add(int argc, const char **argv) if (fetch_tags != TAGS_DEFAULT) { strbuf_reset(&buf); - strbuf_addf(&buf, "remote.%s.tagopt", name); + strbuf_addf(&buf, "remote.%s.tagOpt", name); git_config_set(buf.buf, fetch_tags == TAGS_SET ? "--tags" : "--no-tags"); } @@ -746,7 +746,7 @@ static int mv(int argc, const char **argv) } if (info->push_remote_name && !strcmp(info->push_remote_name, rename.old_name)) { strbuf_reset(&buf); - strbuf_addf(&buf, "branch.%s.pushremote", item->string); + strbuf_addf(&buf, "branch.%s.pushRemote", item->string); git_config_set(buf.buf, rename.new_name); } } |