Commit 4a9cfa9
committed
Fixed remote test error in linux / osx
OSX/Linux now implement the proper behavior of libgit2 for the credentials call back. When connecting to the remote, if the credentials are bad, the remote_connect will try the credentials cb again until the credentials cb returns an unusable credentials object or the server accepts the credentials.
As such, we need to put a counter on the credentials for hardcoded values, and then return nothing in the cred call back and expect to catch an error thrown by libgit.1 parent 154d011 commit 4a9cfa9
2 files changed
Lines changed: 27 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
| 213 | + | |
| 214 | + | |
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
| |||
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
216 | 235 | | |
217 | 236 | | |
218 | 237 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 256 | | |
262 | 257 | | |
263 | | - | |
264 | | - | |
| 258 | + | |
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
268 | 262 | | |
269 | 263 | | |
270 | | - | |
271 | | - | |
272 | | - | |
| 264 | + | |
273 | 265 | | |
274 | 266 | | |
275 | 267 | | |
276 | 268 | | |
277 | 269 | | |
278 | 270 | | |
279 | 271 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 272 | + | |
284 | 273 | | |
285 | 274 | | |
286 | 275 | | |
| |||
0 commit comments