From fd5cec8a4b33d3ef8b12e4397c6b769fae740fec Mon Sep 17 00:00:00 2001 From: eejebring Date: Sat, 22 Aug 2026 00:03:59 +0200 Subject: [PATCH] fix --- git.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/git.lua b/git.lua index 43f72db..34a65eb 100644 --- a/git.lua +++ b/git.lua @@ -1,8 +1,6 @@ -- Leave empty for public repos, or add "your-token-here" local GIT_TOKEN = "" -local GIT_OUTPUT_LOCATION = "/home" - -- Update config local UPDATE_URL = "https://git.ejebring.com/eejebring/CC-tweaked-Gitea-Client/raw/branch/main/git.lua" local GIT_FILE = "git.lua" @@ -124,7 +122,7 @@ local function cloneRepo(url) local count = 0 for _, node in ipairs(tree.tree) do if node.type == "blob" then - local localPath = ("%s/%s/%s"):format(GIT_OUTPUT_LOCATION, urlInfo.repo, node.path) + local localPath = ("%s/%s"):format(urlInfo.repo, node.path) local dir = fs.getDir(localPath) if not fs.isDir(dir) then fs.makeDir(dir) end @@ -134,7 +132,7 @@ local function cloneRepo(url) end end - print(("Cloned %d files to %s/%s"):format(count, GIT_OUTPUT_LOCATION, urlInfo.repo)) + print(("Cloned %d files to /home/%s"):format(count, urlInfo.repo)) end local args = { ... }