Permalink
Browse files

Fix weird clone progress indication

Only starts the progress bar in clone once the clone stream has begun to emit progress events
  • Loading branch information...
karissa committed Sep 2, 2015
1 parent b89528d commit 0d3cb9c786495494c2f5df477546cfe7ebeb7db1
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/clone.js
View
@@ -46,7 +46,11 @@ function handleClone (args) {
db.close()
})
if (!args.json) progress(cloneStream, {verb: 'Cloning ' + source + ' into ' + path + '...\nProgress: ', replicate: true})
if (!args.json) {
cloneStream.once('progress', function () {
progress(cloneStream, {verb: 'Cloning ' + source + ' into ' + path + '...\nProgress: ', replicate: true})
})
}
}
function getName (source) {

0 comments on commit 0d3cb9c

Please sign in to comment.