aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-10-19 16:32:35 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-10-19 16:32:35 -0400
commit39a8632d26af03e824a165ca4ad4071a972392be (patch)
tree745a27533a871b3fc544a900b638d881aed37cd0 /src
parentaf3f98690ca947dde5854c6b5c230edfe2e7234e (diff)
downloadlite-xl-plugin-manager-39a8632d26af03e824a165ca4ad4071a972392be.tar.gz
lite-xl-plugin-manager-39a8632d26af03e824a165ca4ad4071a972392be.zip
Reported actual improvement.
Diffstat (limited to 'src')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 4b211f8..c8f3199 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1302,7 +1302,7 @@ end
function Repository:add(pull_remotes)
-- If neither specified then pull onto `master`, and check the main branch name, and move if necessary.
- local manifest, remotes = self:fetch():parse_manifest()
+ local manifest, remotes = self:fetch_if_not_present():parse_manifest()
if pull_remotes then -- any remotes we don't have in our listing, call add, and add into the list
for i, remote in ipairs(remotes) do
if not common.first(repositories, function(repo) return repo.remote == remote.remote and repo.branch == remote.branch and repo.commit == remote.commit end) then