File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ local actions = require("neogit.popups.branch.actions")
66local config_actions = require (" neogit.popups.branch_config.actions" )
77
88function M .create ()
9- local current_branch = git .repo . head . branch or " "
9+ local current_branch = git .branch . current ()
1010 local show_config = current_branch ~= " " and current_branch ~= " (detached)"
1111 local pull_rebase_entry = git .config .get (" pull.rebase" )
1212 local pull_rebase = pull_rebase_entry :is_set () and pull_rebase_entry .value or " false"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local git = require("neogit.lib.git")
55local actions = require (" neogit.popups.branch_config.actions" )
66
77function M .create (branch )
8- branch = branch or git .repo . head . branch
8+ branch = branch or git .branch . current ()
99 local g_pull_rebase = git .config .get_global (" pull.rebase" )
1010 local pull_rebase_entry = git .config .get (" pull.rebase" )
1111 local pull_rebase = pull_rebase_entry :is_set () and pull_rebase_entry .value or " false"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local popup = require("neogit.lib.popup")
55local M = {}
66
77function M .create ()
8- local current = git .repo . head . branch
8+ local current = git .branch . current ()
99 local show_config = current ~= " " and current ~= " (detached)"
1010 local pull_rebase_entry = git .config .get (" pull.rebase" )
1111 local pull_rebase = pull_rebase_entry :is_set () and pull_rebase_entry .value or " false"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local git = require("neogit.lib.git")
55local M = {}
66
77function M .create ()
8- local current = git .repo . head . branch
8+ local current = git .branch . current ()
99
1010 local p = popup
1111 .builder ()
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local actions = require("neogit.popups.rebase.actions")
55local M = {}
66
77function M .create (commit )
8- local branch = git .repo . head . branch
8+ local branch = git .branch . current ()
99 local in_rebase = git .repo .rebase .head
1010 local base_branch = actions .base_branch ()
1111
You can’t perform that action at this time.
0 commit comments