commit e3da4e15dfa82d1ee06bcda61c6cf8f777c99215
from: Flan Hacker
- repository "public_repo_a" {
+ repository "vmm_clock" {
permit rw flan_hacker
+ head master
}
- repository "public_repo_b" {
+ repository "virtio_vmmci" {
permit rw flan_hacker
permit ro anonymous
+ head master
}
- repository "private_repo_c" {
+ repository "private_repo" {
permit rw flan_hacker
}
Just like with the gotsys repository, three new repositories are declared that can be read and written to by the flan_hacker user. - The repository public_repo_b also allows the anonymous + The repository virtio_vmmci also allows the anonymous user to clone it, but not to send new changes to it, as it is declared with the ro mode (read-only). Repositories that are readable by the anonymous user will include a clone url in the summary of the repository when browsing it with a web browser.
+ The head directive is used for both public repos to point the + repository's symbolic HEAD reference at the master branch, which + would otherwise point to the default main branch. +
+It is worth noting that there is currently no way to rename or delete repositories via gotsys.conf(5). @@ -231,10 +238,10 @@ site owner "Vmm Hacker" permit anonymous hide repositories on - repository "public_repo_a" { + repository "vmm_clock" { hide repository off } - repository "public_repo_b" { + repository "virtio_vmmci" { hide repository off } } @@ -248,7 +255,7 @@ site owner "Vmm Hacker" permit anonymous hide repositories off - repository "private_repo_c" { + repository "private_repo" { hide repository on } }