This is because default remote is tracked separately from the remote IDs. Looking into this
OWJL5HO72US47LCBHUZVH6ONALVEADWMFAMXK5RMDHLXSCCFSFQAC
EEF5WHUIPNJAD3OQ7XOY4VSDOMRSPMLZ7EWGDRMADGGAY2YYB6OQC
With these changes:
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul remote
BX6I2G4Q5GM57WBQNEX3JUFWPA: pijul
* QA74ZIBKKZCV7AY63LHRSML3RA: dblsaiko@ssh.pijul.com:pijul/pijul
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul remote delete dblsaiko@ssh.pijul.com:pijul/pijul
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul remote
BX6I2G4Q5GM57WBQNEX3JUFWPA: pijul
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul remote default dblsaiko@ssh.pijul.com:pijul/pijul
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul remote
BX6I2G4Q5GM57WBQNEX3JUFWPA: pijul
* (none) : dblsaiko@ssh.pijul.com:pijul/pijul
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul push
Nothing to push
saiko@invader ~/Src/pijul (pijul)-[main] % target/debug/pijul remote
BX6I2G4Q5GM57WBQNEX3JUFWPA: pijul
* QA74ZIBKKZCV7AY63LHRSML3RA: dblsaiko@ssh.pijul.com:pijul/pijul
This doesn’t handle named remotes well yet, though, I wasn’t aware those existed while trying to add essentially the same system :P
With a named remote “origin” -> dblsaiko@ssh.pijul.com:dblsaiko/pijul set as default
% target/debug/pijul remote
QA74ZIBKKZCV7AY63LHRSML3RA: dblsaiko@ssh.pijul.com:pijul/pijul
USECTP33LNFWHBIC7BE74UIMPE: dblsaiko@ssh.pijul.com:dblsaiko/pijul
* (none) : origin
67GIAQEUQG3KUD7YTYNUWK33BKWPFVNT4YPQMZ3RCALOZ2STDLRQC
There we go, this should cover everything, I hope. With this, the original behavior of the delete command (deletes remote IDs from the database) can be done with the –exact option.