fix<QueryFileSizeChange>: bad order to query binary file size by revisions

This commit is contained in:
leo 2021-07-29 15:10:59 +08:00
parent d9e670b909
commit ce02bb8ab6

View file

@ -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();
}
}
}