clone: ignore --depth when cloning locally (implicitly --local)
commitd7ff1e8e2a79bea60ac9eb2b022b795f6a296278
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 26 Feb 2009 18:09:19 +0000 (26 19:09 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 22:02:06 +0000 (7 23:02 +0100)
treec02bbf344ecc3ac633df6575463a7c307fa40455
parent586f59d95e691b2410968d0440b7bb6f5460e849
clone: ignore --depth when cloning locally (implicitly --local)

When cloning locally, we default to --local, as it makes the whole
operation fast and efficient.

As the most common intent of cloning with a --depth parameter is to
save space, and --local saves more space than --depth ever can,
warn the user and ignore the --depth parameter when cloning locally.

Should --depth be desired, the user can always force proper cloning
by passing the --no-hardlinks parameter, or by using a file:// URL.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Documentation/git-clone.txt
builtin-clone.c
t/t5701-clone-local.sh