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)
95
95
}
96
96
}
97
97
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
+
99
110
PostRemoteSelected ( ) ;
100
111
HasSpecifiedRemoteBranch = false ;
101
112
}
@@ -132,7 +143,7 @@ public override Task<bool> Sure()
132
143
}
133
144
}
134
145
135
- var rs = false ;
146
+ bool rs ;
136
147
if ( FetchAllBranches )
137
148
{
138
149
SetProgressDescription ( $ "Fetching remote: { _selectedRemote . Name } ...") ;
You can’t perform that action at this time.
0 commit comments