summaryrefslogtreecommitdiff
path: root/git-clone-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-05 22:47:34 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-05 22:47:34 (GMT)
commit72347a233e6f3c176059a28f0817de6654ef29c7 (patch)
treecb9bd024b929694b7f9e95b9feb8e046db830f7a /git-clone-script
parent1fcc8ea55d9a126156c037a8c80dc256ceec0855 (diff)
downloadgit-72347a233e6f3c176059a28f0817de6654ef29c7.zip
git-72347a233e6f3c176059a28f0817de6654ef29c7.tar.gz
git-72347a233e6f3c176059a28f0817de6654ef29c7.tar.bz2
Make "git clone" use the new git-clone-pack
Diffstat (limited to 'git-clone-script')
-rwxr-xr-xgit-clone-script5
1 files changed, 1 insertions, 4 deletions
diff --git a/git-clone-script b/git-clone-script
index 654f66d..28a9321 100755
--- a/git-clone-script
+++ b/git-clone-script
@@ -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"