Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git-clone-script - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 654f66dcc236006709e59214cc55d64c69c33993 (plain)
1
2
3
4
5
6
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 )