File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,22 @@ public override async Task<bool> Sure()
6565 var log = _repo . CreateLog ( $ "Merging '{ _sourceName } ' into '{ Into } '") ;
6666 Use ( log ) ;
6767
68- await new Commands . Merge ( _repo . FullPath , _sourceName , Mode . Arg , Edit )
68+ var succ = await new Commands . Merge ( _repo . FullPath , _sourceName , Mode . Arg , Edit )
6969 . Use ( log )
7070 . ExecAsync ( ) ;
7171
72+ if ( succ )
73+ {
74+ var submodules = await new Commands . QueryUpdatableSubmodules ( _repo . FullPath ) . GetResultAsync ( ) ;
75+ if ( submodules . Count > 0 )
76+ await new Commands . Submodule ( _repo . FullPath )
77+ . Use ( log )
78+ . UpdateAsync ( submodules , true , true ) ;
79+ }
80+
7281 log . Complete ( ) ;
7382
74- if ( _repo . SelectedViewIndex == 0 )
83+ if ( succ && _repo . SelectedViewIndex == 0 )
7584 {
7685 var head = await new Commands . QueryRevisionByRefName ( _repo . FullPath , "HEAD" ) . GetResultAsync ( ) ;
7786 _repo . NavigateToCommit ( head , true ) ;
You can’t perform that action at this time.
0 commit comments