aboutsummaryrefslogtreecommitdiffstats
path: root/create-repo
blob: bf37d94792e67791de2da18ea15909dbd609cf7f (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
if [ -n "$1" ]; then
    echo "Usage: create-repo <reponame>"
    exit 1
fi
sudo -u git git init --bare ~git/"$1"
# uncomment to add each new repo to a specific user
#sudo -u git sh -c "echo $1 > ~git/user.listrw"