scalar: parse `clone --no-fetch-commits-and-trees` for backwards compatibility

This option does not do anything anymore, though.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2021-08-24 18:01:47 +02:00 коммит произвёл Victoria Dye
Родитель f91cb5757a
Коммит 01dbeaae79
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -679,6 +679,7 @@ static int init_shared_object_cache(const char *url,
static int cmd_clone(int argc, const char **argv)
{
int dummy = 0;
const char *branch = NULL;
int full_clone = 0, single_branch = 0, show_progress = isatty(2);
const char *cache_server_url = NULL, *local_cache_root = NULL;
@ -697,6 +698,8 @@ static int cmd_clone(int argc, const char **argv)
OPT_STRING(0, "local-cache-path", &local_cache_root,
N_("<path>"),
N_("override the path for the local Scalar cache")),
OPT_HIDDEN_BOOL(0, "no-fetch-commits-and-trees",
&dummy, N_("no longer used")),
OPT_END(),
};
const char * const clone_usage[] = {