Permalink
Browse files

use the argv.secret in the git uri

  • Loading branch information...
1 parent 844aa6b commit c921dadfe11b35b982beab910cb152068068f223 @substack committed Aug 1, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/deploy.js
View
6 bin/deploy.js
@@ -33,8 +33,10 @@ p.hub(function (hub) {
});
function deploy (hub, opts) {
- var ref = 'http://' + argv.hub.split(':')[0]
- + ':' + hub.ports.git + '/' + opts.repo;
+ var ref = 'http://'
+ + (argv.secret ? 'git:' + encodeURIComponent(argv.secret) + '@' : '')
+ + argv.hub.split(':')[0]
+ ;
git.push(ref, function (err) {
if (err) {

0 comments on commit c921dad

Please sign in to comment.