]> git.ipfire.org Git - thirdparty/git.git/blobdiff - remote-curl.c
commit-graph: pass a 'struct repository *' in more places
[thirdparty/git.git] / remote-curl.c
index 5cbc6e50025b7cbf8b210cdd7bd6638fe2fa57fa..c9921c552c09c7a7f6b074ce1d9bb8f0889cd299 100644 (file)
@@ -121,7 +121,11 @@ static int set_option(const char *name, const char *value)
        }
        else if (!strcmp(name, "cas")) {
                struct strbuf val = STRBUF_INIT;
-               strbuf_addf(&val, "--" CAS_OPT_NAME "=%s", value);
+               strbuf_addstr(&val, "--force-with-lease=");
+               if (*value != '"')
+                       strbuf_addstr(&val, value);
+               else if (unquote_c_style(&val, value, NULL))
+                       return -1;
                string_list_append(&cas_options, val.buf);
                strbuf_release(&val);
                return 0;