Re: [PATCH v3] Add push --set-upstream
- From
Jeff King <peff@peff.net>
- Date
- Jan 16, 2010, 18:28 UTC
- Message-ID
- <20100116182829.GA27474@sigill.intra.peff.net>
- In-Reply-To
- <be6fef0d1001160813o674ed93dn33843813be6f45be@mail.gmail.com>
On Sun, Jan 17, 2010 at 12:13:20AM +0800, Tay Ray Chuan wrote:
Show 9 quoted lines
> On Sat, Jan 16, 2010 at 11:56 PM, Ilari Liusvaara
> <ilari.liusvaara@elisanet.fi> wrote:
> > Hmm... In what conditions ref->status is 'none' after push operation
> > has completed?
>
> when a match between a local and remote ref is not found.
>
> For example, the local ref 'master' will match the remote ref
> 'master', but not 'retsam' ('master' spelled in reverse).How would it make any sense to set up a tracking branch, then? Not only is it not desired (if I said "git push -u foo:bar", I don't expect it to do _anything_ with some other local branch besides foo), but it wouldn't work, since the peer_ref pointer would be NULL.
-Peff