Skip to content

Commit a077b6f

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 51a0743 commit a077b6f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎scalar.c‎

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

724724
static int cmd_clone(int argc, const char **argv)
725725
{
726+
int dummy = 0;
726727
const char *branch = NULL;
727728
char *branch_to_free = NULL;
728729
int full_clone = 0, single_branch = 0, show_progress = isatty(2);
@@ -749,6 +750,8 @@ static int cmd_clone(int argc, const char **argv)
749750
OPT_STRING(0, "local-cache-path", &local_cache_root,
750751
N_("<path>"),
751752
N_("override the path for the local Scalar cache")),
753+
OPT_HIDDEN_BOOL(0, "no-fetch-commits-and-trees",
754+
&dummy, N_("no longer used")),
752755
OPT_END(),
753756
};
754757
const char * const clone_usage[] = {

0 commit comments

Comments
 (0)