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

[Bug report] git log shows a wrong history

From
ALAdam Lee <adam8157@gmail.com>
Date
Nov 12, 2022, 04:23 UTC
Message-ID
<CABAGCCq-bFYX+9kU-GGWBstjMjOcO1nSQdi6Udugtkd2McO3Tg@mail.gmail.com>
What did you do before the bug happened? (Steps to reproduce your issue)

``` git clone https://github.com/greenplum-db/gpdb-postgres-merge.git git_log_reproducer

cd git_log_reproducer/
git co -b iteration_REL_12_12 origin/iteration_REL_12_12

git log ```

What did you expect to happen? (Expected behavior)

A part of the history is: ``` ... commit 9ac9a7fd4138988d744e0b5767883c06c20ffa6f commit fe0a9ddbdd7eee572f7321f9680280044fd5f258 ... ```

What happened instead? (Actual behavior)

That part of the history is: ``` ... commit 9ac9a7fd4138988d744e0b5767883c06c20ffa6f commit f9c655d647427b45ae0d7bd9baf3551a013b8ea1 commit fe0a9ddbdd7eee572f7321f9680280044fd5f258 ... ```

What's different between what you expected and what actually happened?
commit f9c655d647427b45ae0d7bd9baf3551a013b8ea1 is at the wrong place.
`git log --graph` is fine.
Anything else you want to add:

[System Info] git version: git version 2.34.1 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 compiler info: gnuc: 11.2 libc info: glibc: 2.35 $SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]
-- 
Adam
Next: SZEDER Gábor
Message 1 of 3 in “[Bug report] git log shows a wrong history”
  1. Adam LeeNov 12, 2022
  2. SZEDER GáborNov 12, 2022
  3. Adam LeeNov 12, 2022

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.