[Bug] --simplify-by-decoration prints undecorated commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

In the following scenario, --simplify-by-decoration prints an
undecorated commit, which seems to be a bug.

> What did you do before the bug happened? (Steps to reproduce your issue)

# Clone this repo
$ git clone https://github.com/bitnami/charts.git

# Test --simplify-by-decoration with -1, which should display the
first decorated commit
$ git log -1 --simplify-by-decoration --oneline f137d2178d
f137d2178d (HEAD -> main, tag: gitea/3.1.2, origin/main, origin/HEAD)
[bitnami/gitea] Release 3.1.2 (#31031)
# The above output makes sense: the commit is decorated.

# Now, let's try --simplify-by-decoration on another commit
$ git log -1 --simplify-by-decoration --oneline 1e3ef455cc
025a87d9db Merge branch 'master' into master
# The above output seems incorrect, because the commit isn't decorated

# Let's confirm if the above commit is decorated
$ git show-ref --tags --heads | grep 025a87d9db
$
# No output, so the commit isn't decorated. That seems to confirm the bug.

> What did you expect to happen? (Expected behavior)

I expected --simplify-by-decoration to display decorated commits.

> What happened instead? (Actual behavior)

Git printed commit 025a87d9db, which isn't decorated.

> What's different between what you expected and what actually happened?

Commit 025a87d9db isn't decorated, but the --simplify-by-decoration
command prints it.

> Anything else you want to add:

No


[System Info]
git version:
git version 2.47.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
libcurl: 8.4.0
zlib: 1.2.12
uname: Darwin 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00
PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64
compiler info: clang: 15.0.0 (clang-1500.3.9.4)
libc info: no libc information available
$SHELL (typically, interactive shell): /usr/local/bin/bash


[Enabled Hooks]

--
Best regards,
Aleksander Korzynski




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux