Merge branch 'jk/doc-diff-options'
[gitweb.git] / builtin / clone.c
index 6ad0ab3fa40af1761482f5fc78b4b1c401f9717c..2da71db10752bf95647052dcd5b7c4b28e7a50ac 100644 (file)
@@ -1083,9 +1083,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
                warning(_("--local is ignored"));
        transport->cloning = 1;
 
-       if (!transport->get_refs_list || (!is_local && !transport->fetch))
-               die(_("Don't know how to clone %s"), transport->url);
-
        transport_set_option(transport, TRANS_OPT_KEEP, "yes");
 
        if (option_depth)