Skip to content

Commit 3c6ed26

Browse files
authored
Merge pull request #270 from nullchilly/fix/cache
fix(cache): wrong .git path
2 parents 7761fea + 7b00ebb commit 3c6ed26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/github-theme/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ M.setup = function(opts)
9494
local cached_path = util.join_paths(config.options.compile_path, 'cache')
9595
local cached = read_file(cached_path)
9696

97-
local git_path = util.join_paths(debug.getinfo(1).source:sub(2, -23), '.git')
97+
local git_path = util.join_paths(debug.getinfo(1).source:sub(2, -27), '.git')
9898
local git = vim.fn.getftime(git_path)
9999
local hash = require('github-theme.lib.hash')(opts) .. (git == -1 and git_path or git)
100100

0 commit comments

Comments
 (0)