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

if [ -z "$2" ] || [ ! -z "$3" ]
then
	printf 'usage: %s repo-name repo-description\n' "$0" >&2
	exit 1
fi

name="$(basename "$1" .git)"

hut git create "$name" -v public -d "$2"
gh repo create "$name" --disable-issues --disable-wiki -d "$2" --public -h "https://git.sr.ht/~runxiyu/$1"
berg --non-interactive repo create -n "$name" -d "$2" -p public --default-branch master