blob: 33b30abc9910a36176c8baf9dc4fffd6e7312df5 (
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 --shared ~git/"$1"
# uncomment to add each new repo to a specific user
#sudo -u git sh -c "echo $1 >> ~git/user.listrw"
|