1
0
mirror of https://github.com/git/git.git synced 2024-11-18 02:14:03 +01:00
git/git-clone-script

8 lines
132 B
Plaintext
Raw Normal View History

#!/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 )