summaryrefslogtreecommitdiff
path: root/addrepo
blob: 1a3aa6acfd3d439adf39f3cfc2fca14687859bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

for repo in "$@"; do
  mkdir -p /data/git/"$repo".git
  cd /data/git/"$repo".git
  git init --bare
  git config http.receivepack true
  printf "Enter repository description: "
  read -r desc
  echo "$desc" > description
done