]> git.ipfire.org Git - thirdparty/git.git/commit
remote-curl: use argv_array in parse_push()
authorRené Scharfe <l.s.r@web.de>
Sun, 13 Oct 2019 13:37:39 +0000 (15:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Oct 2019 01:55:11 +0000 (10:55 +0900)
commit062a309d360d47a7eff0036b7706dc923fe8081e
treec8418682b457fe71088230d1994a71530cdfa782
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
remote-curl: use argv_array in parse_push()

Use argv_array to build an array of strings instead of open-coding it.
This simplifies the code a bit.

We also need to make the specs parameter of push(), push_dav() and
push_git() const to match the argv member of the argv_array.  That's
fine, as all three only actually read from the specs array anyway.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c