make a local repo for checkoutExternalQueries
This commit is contained in:
parent
028706c3a2
commit
3be0e89804
6 changed files with 147 additions and 17 deletions
2
lib/external-queries.js
generated
2
lib/external-queries.js
generated
|
|
@ -21,7 +21,7 @@ async function checkoutExternalRepository(repository, ref, githubUrl, tempDir, l
|
|||
throw new Error(`'${repository}@${ref}' is not a valid repository and reference.`);
|
||||
}
|
||||
if (!fs.existsSync(checkoutLocation)) {
|
||||
const repoURL = githubUrl + '/' + repository + '.git';
|
||||
const repoURL = githubUrl + '/' + repository;
|
||||
await new toolrunnner.ToolRunner('git', ['clone', repoURL, checkoutLocation]).exec();
|
||||
await new toolrunnner.ToolRunner('git', [
|
||||
'--work-tree=' + checkoutLocation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue