diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c
index 023754986e347a9529d6295d600f665f32f14577..c21b841e7c5e8d27a6e66e7f70786d77aa4653b5 100644 (file)
--- a/builtin-ls-remote.c
+++ b/builtin-ls-remote.c
#include "remote.h"
static const char ls_remote_usage[] =
#include "remote.h"
static const char ls_remote_usage[] =
-"git-ls-remote [--upload-pack=<git-upload-pack>] [<host>:]<directory>";
+"git ls-remote [--upload-pack=<git-upload-pack>] [<host>:]<directory>";
/*
* Is there one among the list of patterns that match the tail part
/*
* Is there one among the list of patterns that match the tail part
{
int i;
const char *dest = NULL;
{
int i;
const char *dest = NULL;
- int nongit = 0;
+ int nongit;
unsigned flags = 0;
const char *uploadpack = NULL;
const char **pattern = NULL;
unsigned flags = 0;
const char *uploadpack = NULL;
const char **pattern = NULL;
transport_set_option(transport, TRANS_OPT_UPLOADPACK, uploadpack);
ref = transport_get_remote_refs(transport);
transport_set_option(transport, TRANS_OPT_UPLOADPACK, uploadpack);
ref = transport_get_remote_refs(transport);
- transport_disconnect(transport);
-
- if (!ref)
+ if (transport_disconnect(transport))
return 1;
return 1;
-
for ( ; ref; ref = ref->next) {
if (!check_ref_type(ref, flags))
continue;
for ( ; ref; ref = ref->next) {
if (!check_ref_type(ref, flags))
continue;