9 | | NOTE: This will be applied to all '''new''' repos |
| 9 | === Change umask |
| 10 | |
| 11 | On your Gitolite server: |
| 12 | |
| 13 | * Switch to the Gitolite user directory: |
| 14 | |
| 15 | {{{#!sh |
| 16 | cd /home/git |
| 17 | }}} |
| 18 | |
| 19 | * Open the .gitolite.rc configuration file in your editor. |
| 20 | |
| 21 | * Locate the UMASK setting and change it: |
| 22 | |
| 23 | From: |
| 24 | |
| 25 | $UMASK = 0077; |
| 26 | |
| 27 | To: |
| 28 | |
| 29 | $UMASK = 0027; |
| 30 | |
| 31 | ---- |
| 32 | |
| 33 | This change allows members of the git group — such as the tracd user — to read new repositories created by Gitolite. |
| 34 | |
| 35 | Note: This change only affects new repositories created after updating the UMASK. Existing repositories will retain their current permissions unless manually adjusted. Even manually adjusted permissions will be reverted after guix system reconfigure, thus cloning or copying existing bare repos into /home/git/repositories will cause hard to track problems |
| 36 | |
| 37 | 📥 |
| 38 | The most straightforward way to import an existing repository is to let gitolite create an empty repo, add this as a remote and push from your existing repo |