Re: Strange, can't push

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

 



On Tue, Apr 21, 2009 at 05:21:15PM -0400, John Dlugosz wrote:

> Locally, the view in gitk, after fetching, is that branch B is one
> commit ahead of remotes/pub/B.  But doing a push doesn't advance it.
> Pushing to another label did get it there, under that name.

It's possible that the remote _is_ up-to-date, and your tracking refs
are simply behind.  Did you try fetching? If so, are you sure your fetch
refspec will update the tracking ref appropriately?

Through what protocol are you pushing? Only the git protocol will
update local tracking refs on push; http will not.

How are you invoking push? Are you using the remote name, so that it can
find the tracking ref (pushing directly to the URL, even if you have a
remote matching that URL, will not update tracking refs).

Finally, what version of git are you using? Recent versions of send-pack
will update tracking refs for pushed _and_ up-to-date refs, but versions
prior to 1.6.0.4 would only do so for things that actually got pushed.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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]