diff options
| author | Chris Ball <chris@printf.net> | 2015-05-16 02:28:44 -0400 |
|---|---|---|
| committer | Chris Ball <chris@printf.net> | 2015-05-16 02:28:44 -0400 |
| commit | f54543f1dd3ca2fb22c3d790016f3449100e57a6 (patch) | |
| tree | f73e7528203b22a76f7f7f3d682eea3f14c0dcc4 /git-remote-gitswarm | |
| parent | 1c46ec470726bae9e21f4e30be8fb0b5008ac981 (diff) | |
gitswarmd writing out a pack file
Diffstat (limited to 'git-remote-gitswarm')
| -rwxr-xr-x | git-remote-gitswarm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-remote-gitswarm b/git-remote-gitswarm index f6b1aed..98ac48a 100755 --- a/git-remote-gitswarm +++ b/git-remote-gitswarm @@ -50,6 +50,9 @@ exec('git ls-remote ' + url + ' HEAD', function (err, stdout, stderr) { swarm.on('wire', function (wire) { console.error('we got a wire') wire.use(ut_gitswarm()) - // wire.ut_gitswarm.askforsha(parsed.infoHash) + wire.ut_gitswarm.on('handshake', function () { + console.error('in ut_gitswarm on handshake') + wire.ut_gitswarm.ask(parsed.infoHash) + }) }) }) |
