Re: [PATCH] last-modified: verify revision argument is a commit-ish
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 12, 2026, 20:23 UTC
- Message-ID
- <xmqq344amvgq.fsf@gitster.g>
- In-Reply-To
- <20260112-toon-last-modified-tree-v1-1-ecbc78341f76@iotcl.com>
Toon Claes <toon@iotcl.com> writes:
> Passing a tree OID to git-last-modified(1) would trigger BUG behavior.
>
> git last-modified HEAD^{tree}
> BUG: builtin/last-modified.c:456: paths remaining beyond boundary in last-modifiedOf course, the starting point last-modified needs to be something that will yield series of commits when given to get_revision() ;-)
> Fix this error by verifying the parsed revision is peels to a > commit-ish.
OK.