Skip to content

Commit a99fddd

Browse files
dschomjcheetham
authored andcommitted
scalar: parse clone --no-fetch-commits-and-trees for backwards compatibility
This option does not do anything anymore, though. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a378400 commit a99fddd

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
@@ -690,6 +690,7 @@ static int init_shared_object_cache(const char *url,
690690

691691
static int cmd_clone(int argc, const char **argv)
692692
{
693+
int dummy = 0;
693694
const char *branch = NULL;
694695
char *branch_to_free = NULL;
695696
int full_clone = 0, single_branch = 0, show_progress = isatty(2);
@@ -714,6 +715,8 @@ static int cmd_clone(int argc, const char **argv)
714715
OPT_STRING(0, "local-cache-path", &local_cache_root,
715716
N_("<path>"),
716717
N_("override the path for the local Scalar cache")),
718+
OPT_HIDDEN_BOOL(0, "no-fetch-commits-and-trees",
719+
&dummy, N_("no longer used")),
717720
OPT_END(),
718721
};
719722
const char * const clone_usage[] = {

0 commit comments

Comments
 (0)