1#!/bin/sh 2repo="$1" 3dir="$2" 4mkdir $dir || exit 1 5cd $dir 6git-init-db 7git fetch "$repo" && ( git-rev-parse FETCH_HEAD > .git/HEAD )
#!/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 )