Skip to content

Commit d68c1f6

Browse files
committed
Compare the data read in the file header.
This is more correct than comparing only the size. Signed-off-by: David Calavera <[email protected]>
1 parent 270670c commit d68c1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/porcelain/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ func readLFSData(file io.Reader) (*pointerData, error) {
682682
// ignore file if it's not an LFS pointer with the expected header
683683
return nil, nil
684684
}
685-
if count != len(lfsVersionString) {
685+
if count != len(lfsVersionString) || string(data) != lfsVersionString {
686686
// ignore file if it's not an LFS pointer with the expected header
687687
return nil, nil
688688
}

0 commit comments

Comments
 (0)