mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-15 07:35:04 +00: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:
parent
f04b0c5d97
commit
f003f67129
1 changed files with 3 additions and 3 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue