Skip to content

Commit

Permalink
grrr
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchen committed Sep 24, 2024
1 parent 09f4dc2 commit 5bc02fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/services/SidebarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SidebarService implements ISidebarService {
}
function gitTrackedDate(file: string): Date {
const dateStr = execSync(
`git log --diff-filter=A --format="%cI" -- '${path.join(documentRoot().fullName, file)}.md'`,
`git log --diff-filter=A --format="%cI" -- '${path.join(documentRoot().parent!.fullName, file)}.md'`,
)
.toString()
.trim();
Expand All @@ -58,7 +58,7 @@ class SidebarService implements ISidebarService {
`'${path.join(documentRoot().fullName, file)}.md'`,
]).stdout.toString(); */
console.log(
`current command: ${`git log --diff-filter=A --format="%cI" -- "${path.join(documentRoot().fullName, file)}.md"`}`,
`current command: ${`git log --diff-filter=A --format="%cI" -- '${path.join(documentRoot().fullName, file)}.md'`}`,
);
console.log(`current timestamp: ${dateStr}`);
const foo = new Date(dateStr);
Expand Down

0 comments on commit 5bc02fc

Please sign in to comment.