From 3f29c43513455e5a23b095c79cb3764e8cec61a9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 2 Nov 2023 04:10:52 +0000 Subject: [PATCH] ref!(git-tag): clone(url, path) => clone(path, url) so that repoPath is always first --- _common/git-tag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_common/git-tag.js b/_common/git-tag.js index e35515f..5ec1fe6 100644 --- a/_common/git-tag.js +++ b/_common/git-tag.js @@ -17,7 +17,7 @@ if (!repoBaseDir) { var Repos = {}; -Repos.clone = async function (gitUrl, repoPath) { +Repos.clone = async function (repoPath, gitUrl) { let uuid = Crypto.randomUUID(); let tmpPath = `${repoPath}.${uuid}.tmp`; await exec(`git clone --bare --filter=tree:0 ${gitUrl} ${tmpPath}`); @@ -90,7 +90,7 @@ async function getAllReleases(gitUrl) { let isCloned = await Repos.checkExists(repoPath); if (!isCloned) { - await Repos.clone(gitUrl, repoPath); + await Repos.clone(repoPath, gitUrl); } let commitInfos = [];