Re: Bug report: branch display in git stash output

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

 



On 23/10/21 14.21, Kraymer wrote:
What did you do before the bug happened? (Steps to reproduce your issue)

❯ git checkout -b branch/with/slash
Switched to a new branch 'branch/with/slash'
❯ echo "foobar" > foobar.txt
❯ git stash
Saved working directory and index state WIP on slash: 41dc5da git:
update .gitconfig

What did you expect to happen? (Expected behavior)

❯ git stash list
stash@{0}: WIP on branch/with/slash: 41dc5da git: update .gitconfig

What happened instead? (Actual behavior)

❯ git stash list
stash@{0}: WIP on slash: 41dc5da git: update .gitconfig

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

the displayed branch name in `git stash` output is truncated

I can reproduce the issue using this reproducer:

```

mkdir test && cd test &&
git init &&

# make initial commit first, since git stash requires it
echo "./" > slashdot &&
git commit -m "slashdot" &&

# stash WIP
git checkout -b slash/dot &&
echo "slashdot" >> slashdot &&
git stash push -m "slashdot"
```

Note that when stashing, the message says "Saved working directory and index state On dot: slashdot" although we are currently on `slash/dot` branch.

--
An old man doll... just what I always wanted! - Clara



[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