Skip to content

Commit beeb30f

Browse files
committed
Fixes rename parsing order
1 parent 3d902e0 commit beeb30f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/git/parsers/logParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ export function createLogParserWithFilesAndStats<T extends Record<string, unknow
394394
let status;
395395
// If we don't get a path it is likely a renamed file (because `-z` screws up the format)
396396
if (!path) {
397-
field = fields.next();
398-
path = field.value.trim();
399397
field = fields.next();
400398
originalPath = field.value.trim();
399+
field = fields.next();
400+
path = field.value.trim();
401401
status = 'R';
402402
} else {
403403
// Handle renamed files which show as path/to/file => new/path/to/file

0 commit comments

Comments
 (0)