summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fcc8ea)
raw | patch | inline | side by side (parent: 1fcc8ea)
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 654f66dcc236006709e59214cc55d64c69c33993..28a93212690e9537e113fcad295f2dd451de7a45 100755 (executable)
--- a/git-clone-script
+++ b/git-clone-script
#!/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"