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 654f66d..28a9321 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"