#!/bin/sh if [ -n "$1" ]; then echo "Usage: create-repo " 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"