Permalink
Browse files

export $COMMIT and $REPO for spawn() too

  • Loading branch information...
1 parent 5f515e0 commit 6469af54ed0edf67152688878c87f5e652bb7863 @substack committed Mar 1, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 index.js
  2. +1 −1 package.json
View
@@ -325,6 +325,10 @@ Propagit.prototype.drone = function (fn) {
actions.spawn = function (opts, cb) {
var repo = opts.repo;
var commit = opts.commit;
+
+ process.env.COMMIT = commit;
+ process.env.REPO = repo;
+
var dir = path.join(self.deploydir, repo + '.' + commit);
opts.directory = dir;
View
@@ -1,7 +1,7 @@
{
"name" : "propagit",
"description" : "cascading multi-server git deployment",
- "version" : "0.4.4",
+ "version" : "0.4.5",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/propagit.git"

0 comments on commit 6469af5

Please sign in to comment.