Skip to content

Commit 423eda2

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 76cdd2e commit 423eda2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scalar.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ static int init_shared_object_cache(const char *url,
679679

680680
static int cmd_clone(int argc, const char **argv)
681681
{
682+
int dummy = 0;
682683
const char *branch = NULL;
683684
int full_clone = 0, single_branch = 0, show_progress = isatty(2);
684685
const char *cache_server_url = NULL, *local_cache_root = NULL;
@@ -697,6 +698,8 @@ static int cmd_clone(int argc, const char **argv)
697698
OPT_STRING(0, "local-cache-path", &local_cache_root,
698699
N_("<path>"),
699700
N_("override the path for the local Scalar cache")),
701+
OPT_HIDDEN_BOOL(0, "no-fetch-commits-and-trees",
702+
&dummy, N_("no longer used")),
700703
OPT_END(),
701704
};
702705
const char * const clone_usage[] = {

0 commit comments

Comments
 (0)