aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/archive.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-06-14 06:42:03 -0400
committerJunio C Hamano <gitster@pobox.com>2024-06-14 09:34:39 -0700
commitaecd794fca275b42e271b80236e95f0d288bd709 (patch)
tree109cc0ab15551b45c7a98780c9d0b1da8db99572 /builtin/archive.c
parentffce821880408768be21e08a02fecd686e780d01 (diff)
downloadgit-aecd794fca275b42e271b80236e95f0d288bd709.tar.gz
remote: drop checks for zero-url case
Now that the previous commit removed the possibility that a "struct remote" will ever have zero url fields, we can drop a number of redundant checks and untriggerable code paths. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/archive.c')
-rw-r--r--builtin/archive.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/archive.c b/builtin/archive.c
index 0d9aff7e6f..7234607aaa 100644
--- a/builtin/archive.c
+++ b/builtin/archive.c
@@ -31,8 +31,6 @@ static int run_remote_archiver(int argc, const char **argv,
struct packet_reader reader;
_remote = remote_get(remote);
- if (!_remote->url.nr)
- die(_("git archive: Remote with no URL"));
transport = transport_get(_remote, _remote->url.v[0]);
transport_connect(transport, "git-upload-archive", exec, fd);