ref!(git-tag): clone(url, path) => clone(path, url) so that repoPath is always first

This commit is contained in:
AJ ONeal
2023-11-02 04:10:52 +00:00
parent c95f2924cc
commit 3f29c43513

View File

@@ -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 = [];