Skip to content

Commit 6623327

Browse files
committed
bugfix ps7: must use Add-Member to add a property
1 parent e0144af commit 6623327

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Parse-GitStatus.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function Add-GitNumstat($allFiles, $staged) {
113113
$fileName = $match.matches.groups[3].Value.Replace('/', '\')
114114
$matchingStatus = $allFiles | Where {$_.file -eq $fileName}
115115
if ($matchingStatus) {
116-
$matchingStatus.lineEndings = "$fromEol -> $toEol"
116+
$matchingStatus | Add-Member -NotePropertyName 'lineEndings' -NotePropertyValue "$fromEol -> $toEol" -Force
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)