Commit 666eaeb2e3d956c1c7e70c3e279e5b993a71a829
Remove refspec and refs prefix
Charles Lehner committed on 2/8/2016, 4:37:24 AMParent: b57e8b80419ea2fb7cf7d3b5281d371a2b3976c0
Files changed
index.js | changed |
test/remote/git-remote-empty.js | changed |
test/remote/git-remote-full.js | changed |
index.js | ||
---|---|---|
@@ -17,14 +17,12 @@ | ||
17 | 17 | return false |
18 | 18 | } |
19 | 19 | } |
20 | 20 | |
21 | -function capabilitiesSource(prefix) { | |
21 | +function capabilitiesSource() { | |
22 | 22 | return pull.once([ |
23 | 23 | 'option', |
24 | 24 | 'connect', |
25 | - 'refspec refs/heads/*:refs/' + prefix + '/heads/*', | |
26 | - 'refspec refs/tags/*:refs/' + prefix + '/tags/*', | |
27 | 25 | ].join('\n') + '\n\n') |
28 | 26 | } |
29 | 27 | |
30 | 28 | function split2(str, delim) { |
@@ -382,9 +380,8 @@ | ||
382 | 380 | } |
383 | 381 | |
384 | 382 | module.exports = function (opts) { |
385 | 383 | var ended |
386 | - var prefix = opts.prefix | |
387 | 384 | var objectSink = opts.objectSink |
388 | 385 | var getObjects = opts.getObjects || function (id, cb) { |
389 | 386 | cb(null, 0, pull.empty()) |
390 | 387 | } |
@@ -414,9 +411,9 @@ | ||
414 | 411 | function handleCommand(line, read) { |
415 | 412 | var args = split2(line) |
416 | 413 | switch (args[0]) { |
417 | 414 | case 'capabilities': |
418 | - return capabilitiesSource(prefix) | |
415 | + return capabilitiesSource() | |
419 | 416 | case 'list': |
420 | 417 | return listRefs(refSource) |
421 | 418 | case 'connect': |
422 | 419 | return handleConnect(args[1], read) |
Built with git-ssb-web