mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
Add unambigious refs/ prefix to all stash references
Pretty basic fix, didn't seem to have any complications. I only added the refs/ prefix to the FullRefName() method to align with other similar methods, and to make this change not impact any user facing modals. Fixes: https://github.com/jesseduffield/lazygit/issues/4634 Also adds a test demonstrating that the stash show behavior is now fixed
This commit is contained in:
committed by
Stefan Haller
parent
aa23a6e2b5
commit
265557afa2
@@ -12,6 +12,8 @@ var CreateBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
SetupConfig: func(config *config.AppConfig) {},
|
||||
SetupRepo: func(shell *Shell) {
|
||||
shell.EmptyCommit("initial commit")
|
||||
shell.NewBranch("stash")
|
||||
shell.Checkout("master")
|
||||
shell.CreateFile("myfile", "content")
|
||||
shell.GitAddAll()
|
||||
shell.Stash("stash one")
|
||||
@@ -39,6 +41,7 @@ var CreateBranch = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Lines(
|
||||
Contains("new_branch").IsSelected(),
|
||||
Contains("master"),
|
||||
Contains("stash"),
|
||||
).
|
||||
PressEnter()
|
||||
|
||||
|
Reference in New Issue
Block a user