Make "git clone" use the new git-clone-pack
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 5 Jul 2005 22:47:34 +0000 (15:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 5 Jul 2005 22:47:34 +0000 (15:47 -0700)
git-clone-script

index 654f66dcc236006709e59214cc55d64c69c33993..28a93212690e9537e113fcad295f2dd451de7a45 100755 (executable)
@@ -1,7 +1,4 @@
 #!/bin/sh
 repo="$1"
 dir="$2"
-mkdir $dir || exit 1
-cd $dir
-git-init-db
-git fetch "$repo" && ( git-rev-parse FETCH_HEAD > .git/HEAD )
+mkdir "$dir" && cd "$dir" && git-init-db && git-clone-pack "$repo"