summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c3c796)
raw | patch | inline | side by side (parent: 7c3c796)
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) |
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>
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 | patch | blob | history |
diff --git a/git-clone.sh b/git-clone.sh
index 96a356d8b33e8caa1b60e4b37b3e37086db74027..68085a3225cb0047ab3c5764472d3d024e467160 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
# it is local
if base=$(get_repo_base "$repo"); then
repo="$base"
- local=yes
+ if test -z "$depth"
+ then
+ local=yes
+ fi
fi
dir="$2"