Skip to content

Commit

Permalink
Merge pull request #15 from umccr/feat/git-force
Browse files Browse the repository at this point in the history
fix: create path after checking existence
  • Loading branch information
mmalenic authored Feb 19, 2025
2 parents 596b001 + 5177f4a commit e424827
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/htsget-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ export class HtsgetLambda extends Construct {

const localPath = join(tmpdir(), latestCommit);

mkdirSync(localPath, { recursive: true });

const args = ["clone"];
if (gitReference === "HEAD") {
args.push("--depth", "1");
}

args.push(gitRemote, localPath);
if (!existsSync(localPath)) {
mkdirSync(localPath, { recursive: true });

exec("git", args);

if (gitReference !== "HEAD") {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"watch": "tsc -w",
"typedoc": "typedoc"
},
"version": "0.8.6"
"version": "0.8.7"
}

0 comments on commit e424827

Please sign in to comment.