Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/aw_watcher/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local function set_project_name()
end

local function set_branch_name()
local branch = vim.fn.system("git rev-parse --abbrev-ref HEAD")
local branch = vim.fn.system("git rev-parse --abbrev-ref HEAD 2>/dev/null"):gsub("\n", "")
vim.b.branch_name = branch == "" and "unknown" or branch
return vim.b.branch_name
end
Expand Down
Loading