Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Tidy up - slight simplification of rev-list.c
[gitweb.git]
/
git-clone-script
diff --git
a/git-clone-script
b/git-clone-script
index 654f66dcc236006709e59214cc55d64c69c33993..28a93212690e9537e113fcad295f2dd451de7a45 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"