git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-last-modified on bare repository

From
Toon Claes <toon@iotcl.com>
Date
Jan 12, 2026, 15:15 UTC
Message-ID
<87v7h6kgkc.fsf@iotcl.com>
In-Reply-To
<aVvSwkK7RdpFDaVv@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 13 quoted lines
> 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
Previous: Kristoffer Haugsbakk
Message 11 of 11 in “git-last-modified on bare repository”
  1. GustedJan 5, 2026
  2. Patrick SteinhardtJan 5, 2026
  3. GustedJan 5, 2026
  4. Patrick SteinhardtJan 5, 2026
  5. GustedJan 6, 2026
  6. Patrick SteinhardtJan 6, 2026
  7. Kristoffer HaugsbakkJan 6, 2026
  8. Junio C HamanoJan 7, 2026
  9. D. Ben KnobleJan 7, 2026
  10. Kristoffer HaugsbakkJan 5, 2026
  11. Toon ClaesJan 12, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.