Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

more debugs

  • Loading branch information...
commit e9c839ab95425360cd241f0c60ea5810553378d5 1 parent 5f6d881
James Halliday authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 index.js
5 index.js
@@ -271,7 +271,7 @@ Propagit.prototype.drone = function (fn) {
271 271
272 272 function refs (repo) {
273 273 return {
274   - origin : self.gitUri + '/' + repo,
  274 + origin : (self.gitUri + '/' + repo).replace(/(\.git)*$/, '.git'),
275 275 repodir : path.join(self.repodir, repo + '.git'),
276 276 }
277 277 }
@@ -281,9 +281,12 @@ Propagit.prototype.drone = function (fn) {
281 281
282 282 actions.fetch = function (repo, cb) {
283 283 var p = refs(repo);
  284 +console.log('FETCH ' + p.repodir);
284 285 runCmd([ 'git', 'init', '--bare', p.repodir ], function (err) {
285 286 if (err) return cb(err);
286 287
  288 +console.log('+ ' + p.origin);
  289 +console.dir(fs.readdirSync(p.repodir));
287 290 runCmd([ 'git', 'fetch', p.origin ], { cwd : p.repodir }, cb);
288 291 });
289 292 };

0 comments on commit e9c839a

Please sign in to comment.
Something went wrong with that request. Please try again.