Git - handle --intent-to-add on a renamed resource (#183307)

This commit is contained in:
Ladislau Szomoru
2023-05-24 13:11:57 +02:00
committed by GitHub
parent 36464655d1
commit e7e97f8ea8
6 changed files with 18 additions and 4 deletions

View File

@@ -793,7 +793,7 @@ export class GitStatusParser {
// space
i++;
if (entry.x === 'R' || entry.x === 'C') {
if (entry.x === 'R' || entry.y === 'R' || entry.x === 'C') {
lastIndex = raw.indexOf('\0', i);
if (lastIndex === -1) {