diff options
Diffstat (limited to 'git-clone-script')
-rwxr-xr-x | git-clone-script | 7 |
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 ) |