Skip to content

Commit

Permalink
Update git.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon authored Jan 6, 2025
1 parent 9c7f575 commit 3907e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export async function getCacheDetails(): Promise<CacheDetails> {
* @returns parsed line
*/
function parseRawFileDiffLine(line: string): RawFileDiff {
const fileMatch = line.match(/^:+(?:(?<mode>\d{6}) ){2,}(?:\w{7} ){2,}(?<status>[A-Z])\w*\s+(?<path>.*)$/)
const fileMatch = line.match(/^:+(?:(?<mode>\d{6}) ){2,}(?:\w{7,} ){2,}(?<status>[A-Z])\w*\s+(?<path>.*)$/)
if (!fileMatch) throw new Error(`Unexpected file line: ${line}`)

return {
Expand Down

0 comments on commit 3907e38

Please sign in to comment.