Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use self.repodir so that things stop breaking

  • Loading branch information...
commit 6779fcf7826ac276a82c0bd597c634999159e62f 1 parent 21f185d
@substack authored
Showing with 4 additions and 7 deletions.
  1. +3 −6 index.js
  2. +1 −1  package.json
View
9 index.js
@@ -281,9 +281,6 @@ Propagit.prototype.drone = function (fn) {
origin : (self.gitUri + '/' + repo)
.replace(/(\.git)*$/, '.git')
,
- repodir : path.join(self.repodir, repo + '.git')
- .replace(/(\.git)*$/, '.git')
- ,
}
}
self.on('error', self.emit.bind(self, 'error'));
@@ -292,9 +289,9 @@ Propagit.prototype.drone = function (fn) {
actions.fetch = function (repo, cb) {
var p = refs(repo);
- runCmd([ 'git', 'init', p.repodir ], function (err) {
+ runCmd([ 'git', 'init', self.repodir ], function (err) {
if (err) return cb(err);
- runCmd([ 'git', 'fetch', p.origin ], { cwd : p.repodir }, cb);
+ runCmd([ 'git', 'fetch', p.origin ], { cwd : self.repodir }, cb);
});
};
@@ -308,7 +305,7 @@ Propagit.prototype.drone = function (fn) {
process.env.COMMIT = commit;
process.env.REPO = repo;
- runCmd([ 'git', 'clone', p.repodir, dir ], function (err) {
+ runCmd([ 'git', 'clone', self.repodir, dir ], function (err) {
if (err) return cb(err);
runCmd([ 'git', 'checkout', commit ], { cwd : dir },
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "propagit",
"description" : "cascading multi-server git deployment",
- "version" : "0.6.0",
+ "version" : "0.6.1",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/propagit.git"
Please sign in to comment.
Something went wrong with that request. Please try again.