# Strange, can't push

5 messages from 2009-04-21 to 2009-04-22. Participants: John Dlugosz, Jeff King, Kelly F. Hickel.
Thread: https://gitlist.dev/t/18990

## John Dlugosz, 2009-04-21 21:21

Subject: Strange, can't push
Message-ID: <450196A1AAAE4B42A00A8B27A59278E70ACE04E4@EXCHANGE.trad.tradestation.com>
URL: https://gitlist.dev/e/450196A1AAAE4B42A00A8B27A59278E70ACE04E4%40EXCHANGE.trad.tradestation.com

```
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.

Is this another "sorry about msysgit" thing, or is it something that
might happen from time to time that someone might explain to me?

My work-around is to go to that remote repository and delete and rename
the branch from the successful temp I did push.

Could it have something to do with the remote repository not being
"bare"?  Or with the responses being too slow?  

--John

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
  If you received this in error, please contact the sender and delete the material from any computer.

```

## Jeff King, 2009-04-22 15:39

Subject: Re: Strange, can't push
Message-ID: <20090422153951.GB12881@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20090422153951.GB12881%40coredump.intra.peff.net
In-Reply-To: <450196A1AAAE4B42A00A8B27A59278E70ACE04E4@EXCHANGE.trad.tradestation.com>

```
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

```

## John Dlugosz, 2009-04-22 20:30

Subject: RE: Strange, can't push
Message-ID: <450196A1AAAE4B42A00A8B27A59278E70ACE0806@EXCHANGE.trad.tradestation.com>
URL: https://gitlist.dev/e/450196A1AAAE4B42A00A8B27A59278E70ACE0806%40EXCHANGE.trad.tradestation.com
In-Reply-To: <20090422200657.GB14146@coredump.intra.peff.net>

```
> From: Jeff King [mailto:peff@peff.net]
> Sent: Wednesday, April 22, 2009 3:07 PM
> To: John Dlugosz
> Subject: Re: Strange, can't push
> 
> If that is the case, it is a serious problem that we are failing to
> record a ref update but not reporting the error. Can you reproduce it?
> If so, would you mind instrumenting your build with a few stopping
> points to see where it might be going wrong (I would ask you to strace,
> but I somehow doubt that is an option on Windows)?
> 
> -Peff

No, but after two funny things, I've decided that the first thing to do is back up the directory, so I can study it later.  So next time something funny happens, I'll be better able to reproduce it after putting effort into making it go away.

I have yet to rebuild msysgit myself.  Even so, it's not my normal working environment and I have no idea how to fire up a debugger with it.

--John

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

```

## Kelly F. Hickel, 2009-04-22 20:46

Subject: RE: Strange, can't push
Message-ID: <63BEA5E623E09F4D92233FB12A9F7943031172A7@emailmn.mqsoftware.com>
URL: https://gitlist.dev/e/63BEA5E623E09F4D92233FB12A9F7943031172A7%40emailmn.mqsoftware.com
In-Reply-To: <450196A1AAAE4B42A00A8B27A59278E70ACE0806@EXCHANGE.trad.tradestation.com>

```
> From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On
> Behalf Of John Dlugosz
> Sent: Wednesday, April 22, 2009 3:30 PM
> To: Jeff King
> Cc: git@vger.kernel.org
> Subject: RE: Strange, can't push
> 
> > From: Jeff King [mailto:peff@peff.net]
> > Sent: Wednesday, April 22, 2009 3:07 PM
> > To: John Dlugosz
> > Subject: Re: Strange, can't push
> >
> > If that is the case, it is a serious problem that we are failing to
> > record a ref update but not reporting the error. Can you reproduce
> it?
> > If so, would you mind instrumenting your build with a few stopping
> > points to see where it might be going wrong (I would ask you to
> strace,
> > but I somehow doubt that is an option on Windows)?
> >
> > -Peff
> 
> No, but after two funny things, I've decided that the first thing to do
> is back up the directory, so I can study it later.  So next time
> something funny happens, I'll be better able to reproduce it after
> putting effort into making it go away.
> 
> I have yet to rebuild msysgit myself.  Even so, it's not my normal
> working environment and I have no idea how to fire up a debugger with
> it.
> 
> --John

FYI, I've had fairly good luck using strace with cygwin executables on windows.  
No idea if it works with msysgit though....

-Kellyl

```

## John Dlugosz, 2009-04-22 22:11

Subject: RE: Strange, can't push
Message-ID: <450196A1AAAE4B42A00A8B27A59278E70ACE0885@EXCHANGE.trad.tradestation.com>
URL: https://gitlist.dev/e/450196A1AAAE4B42A00A8B27A59278E70ACE0885%40EXCHANGE.trad.tradestation.com
In-Reply-To: <63BEA5E623E09F4D92233FB12A9F7943031172A7@emailmn.mqsoftware.com>

```
 
> FYI, I've had fairly good luck using strace with cygwin executables on
> windows.
> No idea if it works with msysgit though....
> 

<--(looking up strace in Wikipedia)
I think the Windows' tool from Sysinternals called "Process Monitor" would do that.
<http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx>.

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

```
