mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-06 00:36:35 +00:00
ref!(git-tag): clone(url, path) => clone(path, url) so that repoPath is always first
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user