File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,9 @@ public void ViewRevisionFile(Models.Object file)
245
245
case Models . ObjectType . Commit :
246
246
Task . Run ( ( ) =>
247
247
{
248
- var submoduleRoot = Path . Combine ( _repo . FullPath , file . Path ) ;
249
- var commit = new Commands . QuerySingleCommit ( submoduleRoot , _commit . SHA ) . Result ( ) ;
250
- var message = commit != null ? new Commands . QueryCommitFullMessage ( submoduleRoot , _commit . SHA ) . Result ( ) : null ;
248
+ var submoduleRoot = Path . Combine ( _repo . FullPath , file . Path ) . Replace ( ' \\ ' , '/' ) . Trim ( '/' ) ;
249
+ var commit = new Commands . QuerySingleCommit ( submoduleRoot , file . SHA ) . Result ( ) ;
250
+ var message = commit != null ? new Commands . QueryCommitFullMessage ( submoduleRoot , file . SHA ) . Result ( ) : null ;
251
251
var module = new Models . RevisionSubmodule ( )
252
252
{
253
253
Commit = commit ?? new Models . Commit ( ) { SHA = _commit . SHA } ,
You can’t perform that action at this time.
0 commit comments