[PATCH 1/2] clone: do not ignore --no-hardlinks
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 26, 2009, 23:31 UTC
- Message-ID
- <da2c9173f403c4fb509609fb823b6be0728d94f3.1235690903u.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <alpine.DEB.1.00.0902262352380.10279@pacific.mpi-cbg.de>
Somehow --no-hardlinks got broken by making clone a builtin. This was discovered during my work on --depth being ignored for local clones.
There will be a test case that tests for --no-hardlinks in conjunction with --depth, so this patch is not accompanied by a separate test.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- builtin-clone.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-clone.c b/builtin-clone.c index c338910..5540372 100644 --- a/builtin-clone.c +++ b/builtin-clone.c @@ -511,7 +511,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix) refspec.src = src_ref_prefix; refspec.dst = branch_top.buf; - if (path && !is_bundle) + if (path && !is_bundle && use_local_hardlinks) refs = clone_local(path, git_dir); else { struct remote *remote = remote_get(argv[0]);
-- 1.6.2.rc2.404.g8394e