Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Answer whoami --role from the repository's rules

eec0e60344bf5686fc278ba5a8415dc0777ba9e2 · Keenan Nemetz · 6d ago · parent f422c24f

Answer whoami --role from the repository's rules

A role is per repository, so whoami cannot print one truth without knowing which repository is meant. Keep the default answer name-only, for the scripts that call it, and make the role an explicit query on the remote's repository.

The server's vole-whoami verb now accepts a repository path and returns the effective role after the same private-repository rule as a fetch. A run credential may ask only about its own repository. Update the CLI help and the contributor and account docs to point at the new query.

docs/getting-started.md +3−1

@@ -109,11 +109,13 @@ git clone ssh://git@127.0.0.1:2222/demo.git # read and write, using your key
109 109 git clone http://127.0.0.1:8080/git/demo.git # read only, no credentials
110 110 ```
111 111
112 To check which account your key belongs to:
112 To check which account your key belongs to, and the role it holds on this
113 repository:
113 114
114 115 ```sh
115 116 cd demo
116 117 vole whoami
118 vole whoami --role
117 119 ```
118 120
119 121 Try creating an issue: