Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
fix(parser): stop using HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
r4zendev committed Dec 21, 2023
1 parent 6abfd6d commit e9256c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme-parser/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const sync = async () => {
}

// Always exists
const newFile = await git.catFile(['-p', `HEAD:${path}`]);
const newFile = await git.catFile(['-p', `origin/main:${path}`]);
const newReadmeYamlContent = convertToYaml(parse(newFile), path);

// If !websiteFile, we just add the file
Expand Down

0 comments on commit e9256c1

Please sign in to comment.