# Git bug.

2 messages from 2023-04-14 to 2023-04-14. Participants: Gabriel Furstenheim Milerud, Kristoffer Haugsbakk.
Thread: https://gitlist.dev/t/59593

## Gabriel Furstenheim Milerud, 2023-04-14 08:29

Subject: Git bug.
Message-ID: <CAJN3DWqbR-9sNGT=Njei5PNSGKVKSOgrY4K=FXVjUKEFQ27bWg@mail.gmail.com>
URL: https://gitlist.dev/e/CAJN3DWqbR-9sNGT%3DNjei5PNSGKVKSOgrY4K%3DFXVjUKEFQ27bWg%40mail.gmail.com

```
Hi,
Sorry if this is not the right address to report bugs. I'm following
https://stackoverflow.com/questions/10728104/where-can-i-report-a-git-bug/10733251#10733251

Cheers
Gabriel Fürstenheim


Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
> repository in branch A
git name-rev $(git rev-parse HEAD) --name-only
> returns A
git checkout B
git name-rev $(git rev-parse HEAD) --name-only



What did you expect to happen? (Expected behavior)
It should return B

What happened instead? (Actual behavior)
It returns A

What's different between what you expected and what actually happened?
git rev-parse does not seem to update. Same is happenning with git rev-parse @{-1}

Anything else you want to add:
git version 2.34.1

I recently migrated to ubuntu 22. In ubuntu 18 with previous git version is was working as expected.

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[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.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64
compiler info: gnuc: 11.3
libc info: glibc: 2.35
$SHELL (typically, interactive shell): /bin/bash


[Enabled Hooks]

```

## Kristoffer Haugsbakk, 2023-04-14 09:26

Subject: Re: Git bug.
Message-ID: <fe75dd24-344b-4c9b-b08f-af12f3beff11@app.fastmail.com>
URL: https://gitlist.dev/e/fe75dd24-344b-4c9b-b08f-af12f3beff11%40app.fastmail.com
In-Reply-To: <CAJN3DWqbR-9sNGT=Njei5PNSGKVKSOgrY4K=FXVjUKEFQ27bWg@mail.gmail.com>

```
On Fri, Apr 14, 2023, at 10:29, Gabriel Furstenheim Milerud wrote:
> Hi,
> Sorry if this is not the right address to report bugs. I'm following
> https://stackoverflow.com/questions/10728104/where-can-i-report-a-git-bug/10733251#10733251

LGTM.

VonC has amazing Git answers on SO, but I feel that this changelog-type
answer is *too much* for a procedure which is just (based on the bug
reports from the last month or so):

1. Run `git bugreport`
2. Edit the file by filling out the blanks and removing irrelevant stuff
   (follow the instructions)
3. Post the report as an inline plaintext email

So basically the sibling answer https://stackoverflow.com/a/70175922/1725151

-- 
Kristoffer Haugsbakk

```
