-
Notifications
You must be signed in to change notification settings - Fork 699
Open
Description
Description
Steps to Reproduce the Problem
git init
git remote add origin https://example.com/upstream
git remote set-url --add --push origin https://example.com/upstream
git remote set-url --add --push origin https://example.com/mirror
verify the git config:
# .git/config
[remote "origin"]
url = https://example.com/upstream
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = https://example.com/upstream
pushurl = https://example.com/mirror
jj git init --colocate
- make commits
jj bookmark set main -r @-
jj git push -b main
Expected Behavior
Like git, pushes changes to both urls.
Actual Behavior
Only pushes to the last defined pushurl.
This confused me since after a jj git push
(which only pushed to my mirror), I did a jj git fetch
(which pulled from upstream) and it wiped the commit.
Specifications
- Platform:
Linux zzz 6.11.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 03:30:41 +0000 x86_64 GNU/Linux
- Version:
jj 0.23.0
Metadata
Metadata
Assignees
Labels
No labels