We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0cdc96 commit 8ea635cCopy full SHA for 8ea635c
src/utils/get-file-from-branch.ts
@@ -9,6 +9,7 @@ export function getFileFromBranch(
9
const offset = offsetFromHead ? `~${offsetFromHead}` : ''
10
11
execSync(`git fetch origin ${branch}`)
12
- execSync(`git checkout FETCH_HEAD${offset} -- ${filePath}`)
+ execSync(`git checkout ${branch} -- ${filePath}`)
13
+ execSync(`git checkout HEAD${offset} -- ${filePath}`)
14
return readFileSync(filePath)
15
}
0 commit comments