Skip to content

Commit 0bbe6df

Browse files
committed
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>
1 parent 86a52d5 commit 0bbe6df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scalar.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ static int init_shared_object_cache(const char *url,
665665
static int cmd_clone(int argc, const char **argv)
666666
{
667667
const char *branch = NULL;
668-
int full_clone = 0, single_branch = 0;
668+
int full_clone = 0, single_branch = 0, dummy = 0;
669669
const char *cache_server_url = NULL, *local_cache_root = NULL;
670670
char *default_cache_server_url = NULL, *local_cache_root_abs = NULL;
671671
struct option clone_options[] = {
@@ -682,6 +682,8 @@ static int cmd_clone(int argc, const char **argv)
682682
OPT_STRING(0, "local-cache-path", &local_cache_root,
683683
N_("<path>"),
684684
N_("override the path for the local Scalar cache")),
685+
OPT_HIDDEN_BOOL(0, "no-fetch-commits-and-trees",
686+
&dummy, N_("no longer used")),
685687
OPT_END(),
686688
};
687689
const char * const clone_usage[] = {

0 commit comments

Comments
 (0)