File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,18 @@ public Pull(Repository repo, Models.Branch specifiedRemoteBranch)
9595 }
9696 }
9797
98- _selectedRemote = autoSelectedRemote ?? repo . Remotes [ 0 ] ;
98+ if ( autoSelectedRemote == null )
99+ {
100+ var remote = null as Models . Remote ;
101+ if ( ! string . IsNullOrEmpty ( _repo . Settings . DefaultRemote ) )
102+ remote = _repo . Remotes . Find ( x => x . Name == _repo . Settings . DefaultRemote ) ;
103+ _selectedRemote = remote ?? _repo . Remotes [ 0 ] ;
104+ }
105+ else
106+ {
107+ _selectedRemote = autoSelectedRemote ;
108+ }
109+
99110 PostRemoteSelected ( ) ;
100111 HasSpecifiedRemoteBranch = false ;
101112 }
@@ -132,7 +143,7 @@ public override Task<bool> Sure()
132143 }
133144 }
134145
135- var rs = false ;
146+ bool rs ;
136147 if ( FetchAllBranches )
137148 {
138149 SetProgressDescription ( $ "Fetching remote: { _selectedRemote . Name } ...") ;
You can’t perform that action at this time.
0 commit comments