Skip to content

Commit e9e55b7

Browse files
committed
Fix clone example fetchOptions
1 parent 8d25941 commit e9e55b7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/clone.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ fse.remove(path).then(function() {
1010
"https://github.com/nodegit/nodegit.git",
1111
path,
1212
{
13-
remoteCallbacks: {
14-
certificateCheck: function() {
15-
// github will fail cert check on some OSX machines
16-
// this overrides that check
17-
return 1;
13+
fetchOpts: {
14+
callbacks: {
15+
certificateCheck: function() {
16+
// github will fail cert check on some OSX machines
17+
// this overrides that check
18+
return 1;
19+
}
1820
}
1921
}
2022
})

0 commit comments

Comments
 (0)