Skip to content

Commit 21a375b

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 <[email protected]>
1 parent efe17a9 commit 21a375b

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

707707
static int cmd_clone(int argc, const char **argv)
708708
{
709+
int dummy = 0;
709710
const char *branch = NULL;
710711
char *branch_to_free = NULL;
711712
int full_clone = 0, single_branch = 0, show_progress = isatty(2);
@@ -732,6 +733,8 @@ static int cmd_clone(int argc, const char **argv)
732733
OPT_STRING(0, "local-cache-path", &local_cache_root,
733734
N_("<path>"),
734735
N_("override the path for the local Scalar cache")),
736+
OPT_HIDDEN_BOOL(0, "no-fetch-commits-and-trees",
737+
&dummy, N_("no longer used")),
735738
OPT_END(),
736739
};
737740
const char * const clone_usage[] = {

0 commit comments

Comments
 (0)