From: Karthik Nayak Date: Wed, 28 Jan 2026 11:05:53 GMT Subject: Re: [PATCH 0/3] Fix misuse of `refs_for_each_ref_in()` Message-ID: In-Reply-To: <20260128-b4-pks-fix-for-each-ref-in-misuse-v1-0-deccae3ea725@pks.im> Patrick Steinhardt writes: > Hi, > > this small patch series fixes a bug I have discovered where configuring > "pack.preferBitmapTips" to an exact branch will cause Git to `BUG()`. > > The root cause of this bug is misuse of `refs_for_each_ref_in()`: this > function accepts a prefix to yield refs for, and then strips the prefix > for each ref. Consequently, if passed an exact refname, then stripping > the prefix would make us end up with an empty refname, and that is not > supposed to happen. > > There was one other caller that got it wrong, too, and which is also > fixed in this patch series. > > Thanks! > > Patrick > The patches look good, thanks for the fix!