Debian Codegraph @

misc/pkgos-alioth-new-git

raw
1 #!/bin/sh
2
3 set -e
4
5 usage () {
6 echo "$0 creates a new Git repository out of your current working tree on alioth."
7 echo "You must be at the root of that local git repository"
8 echo "$0 will use the current folder as the name for the Alioth git repository."
9 echo ""
10 echo "Usage: $0 <group> <repo>"
11 echo "example: $0 openstack will create a /git/openstack/><group>/<repo>.git repository"
12 echo "note that you will need to have write access on the destination project,"
13 echo "which means you must be a member of that said project on Alioth."
14 echo ""
15 echo "Please send patch/comments to: Debian OpenStack <[email protected]>"
16 exit 1
17 }
18
19 if [ $# != 2 ] ; then
20 usage
21 fi
22
23 GROUP=$1
24 REPO=$2
25
26 ssh git.debian.org "/home/groups/openstack/stuff/create-repo.sh ${GROUP} ${REPO}"
27 git remote add origin ssh://git.debian.org/git/openstack/${GROUP}/${REPO}.git
28 git push -u --all origin