Skip to content

Commit 8e35688

Browse files
author
James Halliday
committed
hypothetical target output
1 parent ba79146 commit 8e35688

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ var server = http.createServer(function (req, res) {
77
var repo = req.url.split('/')[1];
88
var dir = path.join(__dirname, 'repos', repo);
99

10-
console.log(req.url);
1110
req.pipe(backend(req.url, function (err, service) {
1211
if (err) return res.end(err + '\n');
1312

13+
console.log(service.action, service.repo, service.branch);
14+
1415
var ps = spawn(service.name, service.args.concat(dir));
1516
ps.stdout.pipe(service.createStream()).pipe(ps.stdin);
1617

0 commit comments

Comments
 (0)