summaryrefslogtreecommitdiffstats
path: root/git-clone-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 03:49:43 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 03:49:43 +0200
commit3f571e0b3a7893ed068acd75f27e152d29945637 (patch)
tree4f8ec995afbd9e30705e148b4f0b33a2ace9fde6 /git-clone-script
parent[PATCH] Fix --merge-order unit test breaks introduced by 6c88be169881c9223532... (diff)
downloadgit-3f571e0b3a7893ed068acd75f27e152d29945637.tar.xz
git-3f571e0b3a7893ed068acd75f27e152d29945637.zip
Add "git-clone-script" thingy
It's just a trivial wrapper, but it should make Jeff's kernel developer guide to git look a bit less intimidating.
Diffstat (limited to 'git-clone-script')
-rwxr-xr-xgit-clone-script7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-clone-script b/git-clone-script
new file mode 100755
index 0000000000..654f66dcc2
--- /dev/null
+++ b/git-clone-script
@@ -0,0 +1,7 @@
+#!/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 )