Verified Commit 20da9e62 authored by Aral Balkan's avatar Aral Balkan
Browse files

Update push to try and get a status code

parent 84b10088
...@@ -251,7 +251,12 @@ class Builder ...@@ -251,7 +251,12 @@ class Builder
NodeGit.Remote.lookup repository, 'origin' NodeGit.Remote.lookup repository, 'origin'
.then (origin) => .then (origin) =>
# NodeGit.Remote.initCallbacks @authorisation # NodeGit.Remote.initCallbacks @authorisation
origin.push ['refs/heads/master:refs/heads/master'], @authorisation origin.push ['refs/heads/master:refs/heads/master'],
{
credentials: @authorisation,
pushUpdateReference: (ref, status, data) ->
@log.debug "Push result status: #{status}"
}
# null, # null,
# repository.defaultSignature() # repository.defaultSignature()
# 'Push to master' # 'Push to master'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment