Skip to content

Commit

Permalink
Merge pull request #640 from treatybreaker/fix/pull-no-status
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Jul 19, 2023
2 parents c8412eb + 8d0b842 commit 3d63d76
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/neogit/popups/branch/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local actions = require("neogit.popups.branch.actions")
local config_actions = require("neogit.popups.branch_config.actions")

function M.create()
local current_branch = git.repo.head.branch or ""
local current_branch = git.branch.current()
local show_config = current_branch ~= "" and current_branch ~= "(detached)"
local pull_rebase_entry = git.config.get("pull.rebase")
local pull_rebase = pull_rebase_entry:is_set() and pull_rebase_entry.value or "false"
Expand Down
2 changes: 1 addition & 1 deletion lua/neogit/popups/branch_config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local git = require("neogit.lib.git")
local actions = require("neogit.popups.branch_config.actions")

function M.create(branch)
branch = branch or git.repo.head.branch
branch = branch or git.branch.current()
local g_pull_rebase = git.config.get_global("pull.rebase")
local pull_rebase_entry = git.config.get("pull.rebase")
local pull_rebase = pull_rebase_entry:is_set() and pull_rebase_entry.value or "false"
Expand Down
2 changes: 1 addition & 1 deletion lua/neogit/popups/pull/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local popup = require("neogit.lib.popup")
local M = {}

function M.create()
local current = git.repo.head.branch
local current = git.branch.current()
local show_config = current ~= "" and current ~= "(detached)"
local pull_rebase_entry = git.config.get("pull.rebase")
local pull_rebase = pull_rebase_entry:is_set() and pull_rebase_entry.value or "false"
Expand Down
2 changes: 1 addition & 1 deletion lua/neogit/popups/push/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local git = require("neogit.lib.git")
local M = {}

function M.create()
local current = git.repo.head.branch
local current = git.branch.current()

local p = popup
.builder()
Expand Down
2 changes: 1 addition & 1 deletion lua/neogit/popups/rebase/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local actions = require("neogit.popups.rebase.actions")
local M = {}

function M.create(commit)
local branch = git.repo.head.branch
local branch = git.branch.current()
local in_rebase = git.repo.rebase.head
local base_branch = actions.base_branch()

Expand Down

0 comments on commit 3d63d76

Please sign in to comment.