mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
fix: should use file.SHA instead of _commit.SHA to query submodule's commit
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -245,9 +245,9 @@ namespace SourceGit.ViewModels
|
||||
case Models.ObjectType.Commit:
|
||||
Task.Run(() =>
|
||||
{
|
||||
var submoduleRoot = Path.Combine(_repo.FullPath, file.Path);
|
||||
var commit = new Commands.QuerySingleCommit(submoduleRoot, _commit.SHA).Result();
|
||||
var message = commit != null ? new Commands.QueryCommitFullMessage(submoduleRoot, _commit.SHA).Result() : null;
|
||||
var submoduleRoot = Path.Combine(_repo.FullPath, file.Path).Replace('\\', '/').Trim('/');
|
||||
var commit = new Commands.QuerySingleCommit(submoduleRoot, file.SHA).Result();
|
||||
var message = commit != null ? new Commands.QueryCommitFullMessage(submoduleRoot, file.SHA).Result() : null;
|
||||
var module = new Models.RevisionSubmodule()
|
||||
{
|
||||
Commit = commit ?? new Models.Commit() { SHA = _commit.SHA },
|
||||
|
||||
Reference in New Issue
Block a user