minor fixes of cloning ui

This commit is contained in:
igorklopov 2016-08-17 11:32:22 +03:00
parent 7282ea5f3b
commit a3f88a25cc
3 changed files with 5 additions and 5 deletions

View File

@ -14,9 +14,9 @@ const patchesPath = path.resolve(__dirname, '../patches');
const nodeRepo = 'https://github.com/nodejs/node';
const gitCloneThresholds = {
'objects: 0% ': 0, 'objects: 1% ': 1, 'objects: 5% ': 5, // eslint-disable-line key-spacing
'objects: 10% ': 10, 'objects: 20% ': 20, 'objects: 40% ': 40,
'objects: 60% ': 60, 'objects: 80% ': 80
'ving objects: 0%': 0, 'ving objects: 1%': 1, 'ving objects: 5%': 5, // eslint-disable-line key-spacing
'ving objects: 10%': 10, 'ving objects: 20%': 20, 'ving objects: 40%': 40,
'ving objects: 61%': 60, 'ving objects: 81%': 80, 'deltas: 0%': 98
};
// TODO try cloning bare repo

View File

@ -77,7 +77,7 @@ export function uploadAsset (file, release, name) {
export function downloadAsset (asset, file) {
log.enableProgress();
log.showProgress('', 0);
log.showProgress('0%', 0);
return new Promise((resolve, reject) => {
const headers = { Accept: 'application/octet-stream' };
const ws = fs.createWriteStream(file);

View File

@ -16,7 +16,7 @@ export function spawn (cmd, args, opts) {
export function progress (child, thresholds) {
log.enableProgress();
log.showProgress('', 0);
log.showProgress('0%', 0);
const onData = (data) => {
for (const key in thresholds) {
if (data.indexOf(key) >= 0) {