projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fcc8ea
)
Make "git clone" use the new git-clone-pack
author
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 5 Jul 2005 22:47:34 +0000
(15:47 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 5 Jul 2005 22:47:34 +0000
(15:47 -0700)
git-clone-script
patch
|
blob
|
history
diff --git
a/git-clone-script
b/git-clone-script
index
654f66d
..
28a9321
100755
(executable)
--- 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"