From: Jeff King Date: Sat, 16 Jan 2010 18:28:31 GMT Subject: Re: [PATCH v3] Add push --set-upstream Message-ID: <20100116182829.GA27474@sigill.intra.peff.net> In-Reply-To: On Sun, Jan 17, 2010 at 12:13:20AM +0800, Tay Ray Chuan wrote: > On Sat, Jan 16, 2010 at 11:56 PM, Ilari Liusvaara > 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