diff --git a/examples/push.js b/examples/push.js index 3508097e2..1c9b2ee2a 100644 --- a/examples/push.js +++ b/examples/push.js @@ -57,9 +57,6 @@ fse.remove(path.resolve(__dirname, repoDir)) } }); - return remote.connect(nodegit.Enums.DIRECTION.PUSH); - }) - .then(function() { // Create the push object for this remote return remote.push( ["refs/heads/master:refs/heads/master"],