Re: branch ahead in commits but push claims all up to date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Mar 2009, John Tapsell wrote:

> 2009/3/24 Daniel Barkalow <barkalow@xxxxxxxxxxxx>:
> > On Tue, 24 Mar 2009, John Tapsell wrote:
> >
> >> 2009/3/24 Irene Ros <imirene@xxxxxxxxx>:
> >> > Hi all,
> >> >
> >> > I've been using git for some time now and haven't run into this issue
> >> > before, perhaps someone else here has:
> >> >
> >> > I have a branch that is ahead of its origin by a few commits:
> >> >
> >> > $ git status
> >> > # On branch myBranch
> >> > # Your branch is ahead of 'origin/myBranch' by 10 commits.
> >>
> >> Tried running: git fetch   ?
> >>
> >> For some weird reason  "git push origin mybranch"  doesn't actually
> >> update origin/mybranch.  It's more annoying :-)
> >
> > It should, so long as you're using the native transport and
> > origin/mybranch actually tracks mybranch on origin.
> >
> > "git push" doesn't update it, but the code that implements the native
> > transport does update it if it succeeds.
> >
> > (Actually, I'm not 100% sure that, if you update origin through some other
> > channel with exactly the commit that you now have in mybranch locally, and
> > then try the push, it will update the local tracking for that branch; is
> > that what you've hit?)
> 
> I update via http - maybe that's why?  origin/mybranch is never
> updated when I push.  It's not just a once-off quirk.

Yup, http doesn't have it. One of my series currently in next moves it 
from the git-specific protocol to the common code, but there's still work 
to be done to allow the http push transport to report back to the common 
code what got updated successfully, which is largely a matter of making 
the http-push code run in-process instead of as a command run by 
transport.c, and using the just-added API.

	-Daniel
*This .sig left intentionally blank*

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux