Files
git/builtin
Jeff King 0295ce7cbf archive: fix check for missing url
Running "git archive --remote" checks that we have at least one url for
the remote. It does so by looking at remote.url[0], but that won't work;
if we have no url at all, then remote.url will be NULL, and we'll
segfault.

Check url_nr instead, which is a more direct way of asking what we
want.

You can trigger the segfault like this:

  git -c remote.foo.vcs=bar archive --remote=foo

but I didn't bother adding a test. This is the tip of the iceberg for
no-url remotes, and a later patch will improve that situation. I just
wanted to clean up this bug so it didn't make further refactoring of
this code more confusing.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-06-14 09:34:37 -07:00
..
2024-05-08 10:18:44 -07:00
2024-05-21 09:07:48 -07:00
2024-06-14 09:34:37 -07:00
2024-06-06 12:49:23 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-02-13 10:18:50 -08:00
2024-06-06 12:49:23 -07:00
2024-04-18 12:30:42 -07:00
2024-02-12 09:32:41 -08:00
2024-05-17 10:33:39 -07:00
2024-03-28 14:13:50 -07:00
2023-07-06 11:54:48 -07:00
2024-04-19 12:38:42 +02:00
2024-06-06 12:49:23 -07:00
2024-01-08 14:05:15 -08:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-05-30 08:55:29 -07:00
2024-04-18 12:30:42 -07:00
2024-05-17 10:33:39 -07:00
2024-06-06 12:49:23 -07:00
2024-04-18 12:30:42 -07:00
2024-04-18 12:30:42 -07:00
2024-05-20 11:20:04 -07:00
2024-04-29 20:42:30 +02:00
2024-05-17 10:33:39 -07:00
2024-06-06 12:49:23 -07:00
2024-04-18 12:30:42 -07:00