about summary refs log tree commit diff
path: root/scripts/git-init-repo
blob: fd2209bf3d5e42b068ff711d7dd108ba023fb254 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
set -eu

repo_path="${1:?missing repo path}"
repo_desc="${2:?missing repo description}"

exec bw run -S inazuma "cd /var/lib/git && git init --bare '$repo_path' && echo '$repo_desc' > '$repo_path'/description && chown -R robert:wheel '$repo_path'"