diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-11-08 09:30:50 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-11-08 09:30:50 -0500 |
commit | 7edbdb5c2057a8d3786cc9e3e73f62c4b6858a6d (patch) | |
tree | d66b787bcd763fac44db6ca4ed2fd863305595a6 /src/lpm.lua | |
parent | e37fdc9713cacc6182299ab6f6c632f6bcb75926 (diff) | |
download | lite-xl-plugin-manager-7edbdb5c2057a8d3786cc9e3e73f62c4b6858a6d.tar.gz lite-xl-plugin-manager-7edbdb5c2057a8d3786cc9e3e73f62c4b6858a6d.zip |
Changed erroneous return; thanks to Jan for reporting.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index c77e511..450c8d2 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1258,8 +1258,9 @@ function Repository:fetch() common.mkdirp(temporary_path) log.progress_action("Fetching " .. self.remote .. "...") system.init(temporary_path, self.remote) - self.branch = system.fetch(temporary_path, write_progress_bar):gsub("^refs/heads/", "") + self.branch = system.fetch(temporary_path, write_progress_bar) if not self.branch then error("Can't find remote branch for " .. self.remote) end + self.branch = self.branch:gsub("^refs/heads/", "") path = self.repo_path .. PATHSEP .. self.branch self.local_path = path common.reset(temporary_path, self.branch, "hard") |