diff options
| author | Toon Claes <toon@iotcl.com> | 2026-01-30 15:26:38 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-30 08:57:01 -0800 |
| commit | 525ef52301be231c73393da5af4a4071f060eb20 (patch) | |
| tree | d9196ebe8c54c6f4607a82cca5ee6a5b017c6341 /contrib/persistent-https | |
| parent | b768485c4b7ad0a80d0fd24ec941308b57ccb6ed (diff) | |
| download | git-525ef52301be231c73393da5af4a4071f060eb20.tar.gz git-525ef52301be231c73393da5af4a4071f060eb20.zip | |
last-modified: verify revision argument is a commit-ish
Passing a non-committish revision to git-last-modified(1) triggers the
following BUG:
git last-modified HEAD^{tree}
BUG: builtin/last-modified.c:456: paths remaining beyond boundary in last-modified
Fix this error by ensuring that the given revision peels to a commit.
This change also adds a test to verify git-last-modified(1) can operate
on an annotated tag. For this an annotated tag is added that points to
the second commit. But this causes ambiguous results when calling
git-name-rev(1) with `--tags`, because now two tags point to the same
commit. To remove this ambiguity, pass `--exclude=<tag>` to
git-name-rev(1) to exclude the new annotated tag.
Reported-by: Gusted <gusted@codeberg.org>
Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
