summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/commit_loader_test.go
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-10-16 21:31:42 +0900
committerJesse Duffield <jessedduffield@gmail.com>2022-11-14 19:05:07 +1100
commit52a2e4c1dc270c95366d05687de514caed95f695 (patch)
tree3c0d5d086da0a365c8429166a903874f6c5aaf2f /pkg/commands/git_commands/commit_loader_test.go
parentb33ec5a05025a2755f4511f042e9e0fcb224bf47 (diff)
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
Diffstat (limited to 'pkg/commands/git_commands/commit_loader_test.go')
-rw-r--r--pkg/commands/git_commands/commit_loader_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/commit_loader_test.go b/pkg/commands/git_commands/commit_loader_test.go
index 7d45101ff..ab6d5a105 100644
--- a/pkg/commands/git_commands/commit_loader_test.go
+++ b/pkg/commands/git_commands/commit_loader_test.go
@@ -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",