From c14198a8304388bdd63d35b052689619b5468a3e Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 4 Nov 2020 23:35:12 +0800 Subject: [PATCH] fix: getting wrong size for LFS objects when the size of file didn't changed --- src/Git/Diff.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Git/Diff.cs b/src/Git/Diff.cs index 8fe93a1b..ba754fe6 100644 --- a/src/Git/Diff.cs +++ b/src/Git/Diff.cs @@ -295,6 +295,8 @@ namespace SourceGit.Git { } else if (line.StartsWith("size ")) { rc.New.Size = int.Parse(line.Substring(5)); } + } else if (line.StartsWith(" size ")) { + rc.New.Size = rc.Old.Size = int.Parse(line.Substring(6)); } });