Browse files

more debugs

  • Loading branch information...
1 parent 5f6d881 commit e9c839ab95425360cd241f0c60ea5810553378d5 @substack committed Jul 28, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 index.js
View
5 index.js
@@ -271,7 +271,7 @@ Propagit.prototype.drone = function (fn) {
function refs (repo) {
return {
- origin : self.gitUri + '/' + repo,
+ origin : (self.gitUri + '/' + repo).replace(/(\.git)*$/, '.git'),
repodir : path.join(self.repodir, repo + '.git'),
}
}
@@ -281,9 +281,12 @@ Propagit.prototype.drone = function (fn) {
actions.fetch = function (repo, cb) {
var p = refs(repo);
+console.log('FETCH ' + p.repodir);
runCmd([ 'git', 'init', '--bare', p.repodir ], function (err) {
if (err) return cb(err);
+console.log('+ ' + p.origin);
+console.dir(fs.readdirSync(p.repodir));
runCmd([ 'git', 'fetch', p.origin ], { cwd : p.repodir }, cb);
});
};

0 comments on commit e9c839a

Please sign in to comment.