mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-21 00:30:00 +02:00
fix: fix ambiguous branch name
test: add an integration test for checkout branch by name fix: fix full ref name of detached head refactor: refactor current branch loader chore: use field name explicitly
This commit is contained in:
committed by
Jesse Duffield
parent
b33ec5a050
commit
52a2e4c1dc
pkg
test/integration_new/branch/checkout_by_name/expected/repo
.git_keep
COMMIT_EDITMSGFETCH_HEADHEADcommit-template.txtconfigdescriptionindex
file01.txtfile02.txtfile03.txtinfo
logs
objects
06
18
3b
47
55
6d
95
a0
cf
e6
refs
heads
@ -182,8 +182,8 @@ func TestGetCommits(t *testing.T) {
|
||||
builder := &CommitLoader{
|
||||
Common: utils.NewDummyCommon(),
|
||||
cmd: oscommands.NewDummyCmdObjBuilder(scenario.runner),
|
||||
getCurrentBranchName: func() (string, string, error) {
|
||||
return scenario.currentBranchName, scenario.currentBranchName, nil
|
||||
getCurrentBranchInfo: func() (BranchInfo, error) {
|
||||
return BranchInfo{RefName: scenario.currentBranchName, DisplayName: scenario.currentBranchName, DetachedHead: false}, nil
|
||||
},
|
||||
getRebaseMode: func() (enums.RebaseMode, error) { return scenario.rebaseMode, nil },
|
||||
dotGitDir: ".git",
|
||||
|
Reference in New Issue
Block a user