Re: [ITCH] Specify refspec without remote
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 10, 2013, 19:33 UTC
- Message-ID
- <CALkWK0n_qTThL+_k3tcD_R4PMddBROqZDEaRHUy=GHOO_Q1keQ@mail.gmail.com>
- In-Reply-To
- <CALkWK0nKvTiGsjO4zF81nsSuUM=MmmbpdzHWB=4hFR2PiB+LWg@mail.gmail.com>
Ramkumar Ramachandra wrote:
Show 9 quoted lines
> Otherwise, I think we're consistent. git push master; pushes the > refspec master (with no explicit :<dst> counterpart) to the "default > place to push to" (either depending on which branch I am, or global). > I think Junio was mixing up refspecs with refs (branches, and hence > branch configuration) earlier. git push origin; pushes to "default > refspecs" on the remote origin. By extension, git push; should push > "default respecs" to the "default place to push to". The "default > refspecs" in this context is determined by push.default, which is the > problem.
Major thinko here. The problem is git push master; choosing the "default place to push to" depending on what branch I'm in. A plain git push; is just fine.