* Bug report: branch display in git stash output
@ 2021-10-23 7:21 Kraymer
2021-10-23 12:10 ` Bagas Sanjaya
0 siblings, 1 reply; 2+ messages in thread
From: Kraymer @ 2021-10-23 7:21 UTC (permalink / raw)
To: git
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)
❯ 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
[System Info]
git version:
git version 2.33.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28
20:41:07 UTC 2021 x86_64
compiler info: gnuc: 9.3
libc info: glibc: 2.31
$SHELL (typically, interactive shell): /usr/bin/zsh
[Enabled Hooks]
--
Fabrice
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug report: branch display in git stash output
2021-10-23 7:21 Bug report: branch display in git stash output Kraymer
@ 2021-10-23 12:10 ` Bagas Sanjaya
0 siblings, 0 replies; 2+ messages in thread
From: Bagas Sanjaya @ 2021-10-23 12:10 UTC (permalink / raw)
To: Kraymer, git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-23 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-23 7:21 Bug report: branch display in git stash output Kraymer
2021-10-23 12:10 ` Bagas Sanjaya
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).