Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(setup): ORIG_HEAD doesn't exist in Detached HEAD #432

Merged
merged 1 commit into from Mar 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/catppuccin/init.lua
Expand Up @@ -133,7 +133,7 @@ function M.setup(user_conf)
end

-- Get current hash
local git_path = debug.getinfo(1).source:sub(2, -24) .. ".git" .. M.path_sep .. "ORIG_HEAD"
local git_path = debug.getinfo(1).source:sub(2, -24) .. ".git"
local git = vim.fn.getftime(git_path) -- 2x faster vim.loop.fs_stat
local hash = require("catppuccin.lib.hashing").hash(user_conf)
.. (git == -1 and git_path or git) -- no .git in /nix/store -> cache path
Expand Down