git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* possible bug when pushing with multiple remote repos.
@ 2010-10-22  9:12 Arnaud Mouiche
  2010-10-22  9:32 ` Santi Béjar
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Mouiche @ 2010-10-22  9:12 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

Hi, 

I found a behavior which is, at least, different from what "git help
push" seems to declare.
basically:
- if I have 2 remotes : 'origin' and 'remote_B'
- if I checkout with tracking a branch of 'remote_B'
- if I do "git push remote" or "git push" or "git push -repo=remote_B"
then git try to push all my branches of "origin" to remote_B.

I check with latest git 1.7.3.2, and the issue is still here.

strangely:
- git checkout master
- git push  =>  this is OK, and doesn't try to push any remote_B
references to origin.

I found this is particularity error prone as origin/master can be a fast
forward of remote_B/master, and in this case nobody will complains..
(that's what happened to me ;-) )

attached to this mail, a simple script that show the evidence.

regards,
arnaud



[-- Attachment #2: test.sh --]
[-- Type: application/x-shellscript, Size: 2199 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-22  9:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22  9:12 possible bug when pushing with multiple remote repos Arnaud Mouiche
2010-10-22  9:32 ` Santi Béjar
2010-10-22  9:36   ` Santi Béjar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).