Re: [BUG] Possible bug in `remote set-url --add --push`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 12, 2013, 08:23 UTC
- Message-ID
- <7vpq1aizck.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAN8TAOvP_HX6BEK86aYoX-kVqWDmsbyptxTT2nk+fx+Ut1Tojg@mail.gmail.com>
Jardel Weyrich <jweyrich@gmail.com> writes:
Show 21 quoted lines
> Step 1: > > jweyrich@pharao:test_clone1 [* master]$ git remote -v > origin /Volumes/sandbox/test (fetch) > origin /Volumes/sandbox/test (push) > > jweyrich@pharao:test_clone1 [* master]$ git config -l | grep '^remote\.origin' > remote.origin.url=/Volumes/sandbox/test > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* > > Step 3: > > jweyrich@pharao:test_clone1 [* master]$ git remote set-url --add > --push origin /Volumes/sandbox/test_clone2 > origin /Volumes/sandbox/test (fetch) > origin /Volumes/sandbox/test_clone2/ (push) > > jweyrich@pharao:test_clone1 [* master]$ git config -l | grep '^remote\.origin' > remote.origin.url=/Volumes/sandbox/test > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* > remote.origin.pushurl=/Volumes/sandbox/test_clone2/
So "remote -v" is not lying (we only see one pushurl after Step 3 above) and "set-url" is not working correctly on your box in a way that I cannot reproduce X-<.
> ... > Is `remote.<remote_name>.pushurl` required for the primary URL as > well?
What do you mean by "primary URL"?