radicle-cli icon indicating copy to clipboard operation
radicle-cli copied to clipboard

Attempting to remove a remote results in error

Open slack-coder opened this issue 3 years ago • 1 comments

A regression was introduced in the recent sync merge (b09bffc) causing 'git remote rm' to fail.

For example. as the contributing user (scooby) from the contributor workflow

# rad remote rm cloudhead
== Command failed entry is not unique due to being a multivar; class=Config (7)

slack-coder avatar Jul 20 '22 23:07 slack-coder

The error results from multiple remotes with the same name being present. It is found in the profile's git include file, and in the working copy's local git configuration.

During cloning, the project is checked out using radicle-link and adds an entry in the profiles git include file, likely because its a tracked peer. After, the 'remote' is saved again in the working copy from SetupRemote in rad_checkout::execute.

slack-coder avatar Jul 21 '22 19:07 slack-coder