Renaming git remote renames the remote-trunk revision, but does not update associated revset trunk()
alias
#5488
Labels
polish🪒🐃
Make existing features more convenient and more consistent
Description
Renaming git remote renames the remote-trunk revision, but does not update associated revset alias(es) causing subsequent
jj
commands to emit a warning until the user manually fixes the automatically generated repo config.Steps to Reproduce the Problem
jj git clone [email protected]:jj-vcs/jj.git && cd jj
origin
is present -jj git remote list
trunk()
revset alias -jj config get 'revset-aliases."trunk()"'
origin
upstream toupstream
-jj git remote rename origin upstream
Expected Behavior
Jujitsu renames the remote to
upstream
, renames themain@origin
revision tomain@upstream
, and updates thetrunk()
revset alias tomain@upstream
.Actual Behavior
origin
is renamed toupstream
main@origin
revision is renamed tomain@upstream
revset-aliases."trunk()"
remainsmain@origin
, which no longer existsjj
command emits an error:Warning: Failed to resolve
revset-aliases.trunk(): Revision "main@origin" doesn't exist
until the user fixes withjj config set --repo 'revset-aliases."trunk()"' 'main@upstream'
Specifications
0.25.0
The text was updated successfully, but these errors were encountered: