7 | | This is poorly documented, and Victor should have written this article 2 years ago. |
| 7 | === 1. Create Repository === |
| 8 | |
| 9 | Create the repository on `drugstore` by logging in as `athenasnap` (with your root tickets), and running: |
| 10 | {{{ |
| 11 | $ /git/athena/repository-configuration/bin/create-repo |
| 12 | }}} |
| 13 | |
| 14 | That will create the repository both on drugstore and on Github. |
| 15 | |
| 16 | === 2. Add Submodule === |
| 17 | |
| 18 | Determine where the package should go, based on the guidelines in the [wiki:WorkingWithTheRepository repository layout section of this article]. |
| 19 | In your local clone of the "superrepo" (`git+ssh://git.mit.edu/git/athena/debathena`), add the submodule with a relative path: |
| 20 | {{{ |
| 21 | $ git submodule add ../new-thing.git debathena/new-thing |
| 22 | }}} |
| 23 | That should clone the repository and add it to your .gitmodules. If you run `git status`, you'll see the new directory and the changes to .gitmodules are staged for commit. Commit them, and push to `origin`. |
| 24 | |
| 25 | === 3. Update the Checkouts === |
| 26 | |
| 27 | N.B. It is unclear if this step is actually needed. |
| 28 | |
| 29 | Go to `/home/builder/build/checkouts` on the build server, and `git pull`. |
| 30 | |
| 31 | |