Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Make sure alternates are carried over from the original repository.
author
Junio C Hamano
<junkio@cox.net>
Wed, 17 Aug 2005 22:18:41 +0000
(15:18 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 17 Aug 2005 22:18:41 +0000
(15:18 -0700)
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>
git-clone-script
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6a0049c
)
diff --git
a/git-clone-script
b/git-clone-script
index 909ccc530136899eee130f1a29969281f3b878c9..99c2459631f2bdcc6382bd2b5fc03090e1888ee3 100755
(executable)
--- 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