Re: [PATCH v4 2/4] receive-pack: Clean dead code from update_worktree()
- From
Anders Kaseorg <andersk@mit.edu>
- Date
- Nov 9, 2021, 22:58 UTC
- Message-ID
- <12fc97fb-50dd-a441-5b8f-dd73e6d693b1@mit.edu>
- In-Reply-To
- <nycvar.QRO.7.76.6.2111091711450.54@tvgsbejvaqbjf.bet>
On 11/9/21 08:16, Johannes Schindelin wrote:
> We might want to make sure that `worktree` and `worktree->path` are > non-`NULL`, and otherwise call a `BUG()`.
Okay.
> Okay, I lied, I have two suggestions. Shouldn't this be turned into > `worktree->is_bare`?
Sure (but in the next commit, since removing is_bare_repository() is a bug fix, not pure cleanup).
Anders