Re: [PATCH 2/3] t5509: initialized `pushee` as bare repository
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 13, 2020, 20:14 UTC
- Message-ID
- <xmqqsgjeqm6w.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <d156d04ca87f9fcffb1c08a08576dddcdc64c055.1581620351.git.gitgitgadget@gmail.com>
"Hariom Verma via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 5 quoted lines
> From: Hariom Verma <hariom18599@gmail.com> > > `receive.denyCurrentBranch` currently has a bug where it allows pushing > into the current branch of a non-bare repository as long as it does not > have any commits.
Can patch 3/3 be split into two, so that the fix would protect an already populated branch that is checked out anywhere (not in the primary worktree--which is the bug you are fixing) from getting updated but still allow an unborn branch to be updated, and then have patch 4/3 that forbids an update to even an unborn branch "checked out" in any working tree? This update to the test can then become part of patch 4/3.
Thanks.