author | Charles Bailey <charles@hashpling.org> | |
Tue, 11 Dec 2007 06:47:31 +0000 (06:47 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Dec 2007 18:59:22 +0000 (10:59 -0800) | ||
commit | d4110a9726c7cd5cda35b7dd03dc8f85fe3dff0c | |
tree | 48ab88c64a89f0fb9ffb1f5217f917115d1f7fa0 | tree | snapshot |
parent | 7c3c79629547195d13e325ea015ce9f89bf461b5 | commit | diff |
Fix clone not to ignore depth when performing a local clone
When git-clone detects that it can perform a local clone it
follows a path that silently ignores the depth parameter.
Presumably if the user explicitly requests a shallow clone they
have a reason to prefer a space efficient clone of just the recent
history so bypass the local magic if the user specifies the depth
parameter.
Signed-off-by: Charles Bailey <charles@hashpling.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When git-clone detects that it can perform a local clone it
follows a path that silently ignores the depth parameter.
Presumably if the user explicitly requests a shallow clone they
have a reason to prefer a space efficient clone of just the recent
history so bypass the local magic if the user specifies the depth
parameter.
Signed-off-by: Charles Bailey <charles@hashpling.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh | diff | blob | history |