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,10 +251,15 @@ class Builder ...@@ -251,10 +251,15 @@ 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'],
# null, {
# repository.defaultSignature() credentials: @authorisation,
# 'Push to master' pushUpdateReference: (ref, status, data) ->
@log.debug "Push result status: #{status}"
}
# null,
# repository.defaultSignature()
# 'Push to master'
.then (pushResult) => .then (pushResult) =>
@log.debug "site.origin push result: #{pushResult}" @log.debug "site.origin push result: #{pushResult}"
if repositoryPath == app.dataForSiteDirectory if repositoryPath == app.dataForSiteDirectory
......
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