Skip to content

Commit

Permalink
Add git fetch to help prevent missing ref errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 authored Mar 4, 2024
1 parent 1bce050 commit 1212ebd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ async function handleMetadata (folder, metadata) {
const repoPath = path.join(folder, 'repo')
console.log(`Cloning repo to '${repoPath}'`)
await execShellCommand(`git clone -n "${repoUrl}" "${repoPath}"`)
await execShellCommand(`git -C "${repoPath}" fetch`)
console.log(`Checking out commit'${metadata.commit}'`)
await execShellCommand(`git -C "${repoPath}" checkout "${metadata.commit}"`)

Expand Down

0 comments on commit 1212ebd

Please sign in to comment.