From: Toon Claes <toon@iotcl.com>
To: Gusted <gusted@codeberg.org>
Cc: git@vger.kernel.org, Patrick Steinhardt <ps@pks.im>
Subject: Re: git-last-modified on bare repository
Date: Mon, 12 Jan 2026 16:15:47 +0100 [thread overview]
Message-ID: <87v7h6kgkc.fsf@iotcl.com> (raw)
In-Reply-To: <aVvSwkK7RdpFDaVv@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
> On Mon, Jan 05, 2026 at 02:35:56PM +0100, Gusted wrote:
>> Because it was talking about revision, I quickly checked a refspec as input
>> and it looks like I found another way to trigger a BUG.
>>
>> $ git last-modified -- HEAD:LICENSES
>> BUG: builtin/last-modified.c:456: paths remaining beyond boundary in
>> last-modified
>> [1] 202076 IOT instruction (core dumped) git last-modified --
>> HEAD:LICENSES
>>
>> On the bare and non-bare repository.
>
> This looks like a bug to me indeed. Cc'ing Toon.
Okay, there are various things going on.
First. If you do:
$ git last-modified -- HEAD:LICENSES
On Git 2.52.0, then you're getting the BUG. On 'master' you'll get
simply no output.
But if you do:
$ git last-modified HEAD:LICENSES
Then you actually trigger the same bug as you've reported before.
"HEAD:LICENSES" resolves to a tree oid. So that command is basically the
same as:
$ git last-modified b79c618f6a11fc6f550dc98ef3227ef77b3132aa
In both situation you get a BUG. And I'm still working on a fix.
--
Cheers,
Toon
prev parent reply other threads:[~2026-01-12 15:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-05 13:35 git-last-modified on bare repository Gusted
2026-01-05 15:03 ` Patrick Steinhardt
2026-01-05 15:06 ` Gusted
2026-01-05 15:17 ` Patrick Steinhardt
2026-01-06 9:42 ` Gusted
2026-01-06 9:58 ` Patrick Steinhardt
2026-01-06 10:54 ` Kristoffer Haugsbakk
2026-01-07 0:01 ` Junio C Hamano
2026-01-07 17:12 ` D. Ben Knoble
2026-01-05 15:17 ` Kristoffer Haugsbakk
2026-01-12 15:15 ` Toon Claes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v7h6kgkc.fsf@iotcl.com \
--to=toon@iotcl.com \
--cc=git@vger.kernel.org \
--cc=gusted@codeberg.org \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox