Re: [PATCH v4 1/6] t5516: add test case for pushing remote refspecs
- From
Glen Choo <chooglen@google.com>
- Date
- Nov 15, 2021, 20:09 UTC
- Message-ID
- <kl6llf1ptc4j.fsf@chooglen-macbookpro.roam.corp.google.com>
- In-Reply-To
- <20211115184252.1077901-1-jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
Show 6 quoted lines
> This is technically true, but reading the documentation, it seems that > this should also happen when we're not in detached HEAD. Maybe write: > > "git push remote-name" (that is, with no refspec given on the command > line) should push the refspecs in remote.remote-name.push. There is no > test case that checks this behavior in detached HEAD, so add one.
Ah, you are right. I was under the wrong impression that refspec defaults to HEAD if HEAD points to a branch.
I will adopt your wording, thanks.