login
Header Space

 
 

Re: Problem with a push

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <plexq@...>
Cc: <git@...>
Date: Monday, June 11, 2007 - 7:03 pm

On Mon, 11 Jun 2007, Alex R.M. Turner wrote:

Ok, pushing out remote branches is a bit odd in the first place. As in 
"you probably shouldn't do that". The "remote" branches are really local 
to each repo, and updating them by pushing is really quite suspect.

So the regular "master" branch pushed out fine:


and that part is all ok.

However, I think the problem is this:


You updated the HEAD file, but that actually is a _symbolic_ ref, which 
normally points to refs/removes/origin/HEAD, and that in turn explains the 
other errors:


What happened is that the "remotes/origin/master" branch already got 
updated when you updated HEAD, so now git is complaining that you are 
trying to update it again, but it no longer has the same value that it had 
originally (since you changed it).


Right. Because the HEAD update really already did all the changes (to 
_both_ remotes/origin/HEAD _and_ remotes/origin/master, since it was a 
symref), so next time around there is nothing to push, and you won't see 
this issue any more.

So I don't think there was anything reall bad going on, except for the 
fact that you really shouldn't try to push out remote branches.

What was the command line?  In particular, was this a "git push --all" or 
something? I think we should make sure that we do *not* push remotes by 
default (and if you really *really* want to push remotes, you'd have to 
specify them explicitly).

			Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problem with a push, Alex R.M. Turner, (Mon Jun 11, 5:32 pm)
Re: Problem with a push, Linus Torvalds, (Mon Jun 11, 7:03 pm)
Re: Problem with a push, Andy Parkins, (Tue Jun 12, 5:07 am)
Re: Problem with a push, Linus Torvalds, (Tue Jun 12, 11:07 am)
Re: Problem with a push, Junio C Hamano, (Tue Jun 12, 1:00 pm)
Re: Problem with a push, Martin Langhoff, (Tue Jun 12, 7:38 pm)
Re: Problem with a push, Linus Torvalds, (Tue Jun 12, 2:01 pm)
Re: Problem with a push, Junio C Hamano, (Mon Jun 11, 7:49 pm)
Re: Problem with a push, Alex R.M. Turner, (Mon Jun 11, 7:35 pm)
Re: Problem with a push, Linus Torvalds, (Mon Jun 11, 8:40 pm)
Re: Problem with a push, Jon Loeliger, (Tue Jun 12, 4:15 pm)
Re: Problem with a push, Alex R.M. Turner, (Tue Jun 12, 2:14 pm)
Re: Problem with a push, Linus Torvalds, (Tue Jun 12, 2:46 pm)
Re: Problem with a push, Junio C Hamano, (Mon Jun 11, 9:35 pm)
speck-geostationary