summaryrefslogtreecommitdiff
path: root/mkgit-server
blob: 9a9bfa48f2a4897223f76c13dc22c970e2705bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
if [ "$2" == "" ]; then
	echo usage: mkgit-server [repository name] [git user] [-d]
	echo "	-d; edit the description file instead"
	exit
fi
if [ "$3" == "-d"]; then
	$EDITOR /home/$2/$1.git/description
fi
mkdir /home/$2/$1.git
cd /home/$2/$1.git
git init --bare
echo "This is the description of the Repo" > description
$EDITOR description
chown -R $2 *
cd ..
chown -R $2 $1.git