diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-18 02:18:41 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-18 02:18:41 +0400 |
commit | 0f87f893657129907ff966f44aed7c7624d7ba1b (patch) | |
tree | 49e09ef1836f309b0f29995397dbe926879dbc5a /git-clone-script | |
parent | 6a0049c07623a387bf7f7e7c90b71344c23decfa (diff) |
Make sure alternates are carried over from the original repository.
When we create a cheap local clone by pointing at the object databse
of the original repository, we forgot to take the alternates the original
repository might have had into account.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-clone-script')
-rwxr-xr-x | git-clone-script | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-clone-script b/git-clone-script index 909ccc5301..99c2459631 100755 --- a/git-clone-script +++ b/git-clone-script @@ -81,7 +81,11 @@ yes,yes) ;; yes) mkdir -p "$D/.git/objects/info" - echo "$repo/objects" >"$D/.git/objects/info/alternates" + { + test -f "$repo/objects/info/alternates" && + cat "$repo/objects/info/alternates"; + echo "$repo/objects" + } >"$D/.git/objects/info/alternates" ;; esac |