Auto-rename origin during token sync

This commit is contained in:
mpabi
2026-04-29 02:21:59 +02:00
parent af96388f6a
commit 46f2f44118
4 changed files with 79 additions and 36 deletions
+3
View File
@@ -447,6 +447,9 @@ Zapisuje dane auth z rekordu `REMOTE_ID` w `tokens.json` do git remote o tej
samej nazwie. Jeśli remote jeszcze nie istnieje, URL jest budowany z pól
`server.endpoint`, `org` i `repo` w `tokens.json`.
Jeżeli repo ma tylko remote `origin` wskazujący ten sam URL, `sync store`
automatycznie przemianuje `origin` na `REMOTE_ID` przed wpisaniem credentials.
Przełączniki:
- `--repo PATH`
+3
View File
@@ -136,6 +136,9 @@ Jeśli remote `r1` nie istnieje, `rvctl` buduje URL z pól `server.endpoint`,
http://77.90.8.171:3001/edu-tools/rv-launcher.git
```
Jeżeli w repo istnieje tylko `origin` wskazujący ten sam URL, `sync store r1`
automatycznie przemianuje `origin` na `r1`, a potem wpisze credentials.
Opcjonalnie można podać URL ręcznie:
```bash