Commit 4435fc8900324c433d7c0e31c8a5bda3a5ee53e0
Disable broken progress bar on fetch
Charles Lehner committed on 8/10/2016, 6:34:25 PMParent: c69e18996178106c803a6378a0366dc392486c59
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -143,14 +143,15 @@ | |||
143 | 143 … | if (!hasWants) return cb(true) | |
144 | 144 … | if (options.verbosity >= 2) { | |
145 | 145 … | console.error('common', commonHash, 'wants', wants) | |
146 | 146 … | } | |
147 … | + // TODO: show progress during getObjects | ||
147 | 148 … | getObjects(repo, commonHash, wants, shallows, | |
148 | 149 … | function (err, numObjects, readObjects) { | |
149 | 150 … | if (err) return cb(err) | |
150 | - var progress = progressObjects(options) | ||
151 | - progress.setNumObjects(numObjects) | ||
152 | - sendPack = pack.encode(options, numObjects, progress(readObjects)) | ||
151 … | + // var progress = progressObjects(options) | ||
152 … | + // progress.setNumObjects(numObjects) | ||
153 … | + sendPack = pack.encode(options, numObjects, readObjects) | ||
153 | 154 … | if (options.verbosity >= 1) { | |
154 | 155 … | console.error('retrieving', numObjects, 'git objects') | |
155 | 156 … | } | |
156 | 157 … | sendPack(null, cb) |
Built with git-ssb-web