From ce02bb8ab688035a452e802a9865e7dba34c8f1d Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 29 Jul 2021 15:10:59 +0800 Subject: [PATCH] fix: bad order to query binary file size by revisions --- src/Commands/QueryFileSizeChange.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/QueryFileSizeChange.cs b/src/Commands/QueryFileSizeChange.cs index f17b2fd4..70792e2a 100644 --- a/src/Commands/QueryFileSizeChange.cs +++ b/src/Commands/QueryFileSizeChange.cs @@ -34,11 +34,11 @@ namespace SourceGit.Commands { change.OldSize = new QuerySizeCmd(repo, orgPath, revisions[0]).Result(); } } else { - change.NewSize = new QuerySizeCmd(repo, path, revisions[0]).Result(); + change.NewSize = new QuerySizeCmd(repo, path, revisions[1]).Result(); if (string.IsNullOrEmpty(orgPath)) { - change.OldSize = new QuerySizeCmd(repo, path, revisions[1]).Result(); + change.OldSize = new QuerySizeCmd(repo, path, revisions[0]).Result(); } else { - change.OldSize = new QuerySizeCmd(repo, orgPath, revisions[1]).Result(); + change.OldSize = new QuerySizeCmd(repo, orgPath, revisions[0]).Result(); } } }