Skip to main content

rejoin

Function rejoin 

Source
pub(crate) fn rejoin(api: &str, no_clone: bool) -> !
Expand description

choir join with the link this machine already redeemed, on the node it redeemed it at.

The node forgets an invite once it is spent, so redeeming again would only be refused as a link that was never valid. Instead the join is finished from what the first run recorded: nothing is redeemed and neither the key nor the token is touched. The git helper is set again because it is the same value and every clone below needs it: a first run on a machine that had no git yet recorded the account and could neither configure git nor clone.