56 | | First, go make the github repository. |
57 | | |
58 | | {{{ |
59 | | git init --bare --shared=group /git/athena/packagename.git |
60 | | cd /git/athena/packagename.git |
61 | | mv hooks hooks.orig |
62 | | ln -s /git/athena/repository-configuration/githooks hooks |
63 | | git config core.sharedRepository group #Should be set by shared=group |
64 | | git config core.logAllRefUpdates true |
65 | | git remote add --mirror=push github git@github.com:mit-athena/packagename.git |
66 | | git config gc.reflogexpire never |
67 | | git config gc.reflogexpireunreachable never |
68 | | git config receive.fsckObjects true |
69 | | git config receive.denyNonFastForwards true #Should be set by shared=group |
70 | | git config hooks.push-to github |
71 | | git config hooks.mailinglist source-commits@mit.edu |
72 | | git config hooks.verbose true |
73 | | git config hooks.reponame packagename |
74 | | git config hooks.commit-url-prefix https://github.com/mit-athena/packagename/commit/ |
75 | | }}} |
| 56 | Use `/git/athena/repository-configuration/bin/create-repo`. |