Added prune command, closes #463.

This commit is contained in:
André Cruz
2013-07-05 01:20:28 +01:00
parent ca76d41f9a
commit d8cef76592
6 changed files with 91 additions and 18 deletions

View File

@@ -193,6 +193,7 @@ Project.prototype.uninstall = function (names, options) {
return Q.reject(createError('Already working', 'EWORKING'));
}
options = options || {};
this._working = true;
// Analyse the project
@@ -597,9 +598,7 @@ Project.prototype._readLinks = function () {
linked: true
};
}
})
// Mute error
.fail(function () {});
});
});
// Wait until all links have been read

View File

@@ -56,8 +56,8 @@ GitRemoteResolver.prototype._checkout = function () {
promise.progress(function (data) {
var lines = data.split(/\r?\n/);
lines.forEach(function (data) {
if (/\d{1,3}\%/.test(data)) {
lines.forEach(function (line) {
if (/\d{1,3}\%/.test(line)) {
that._logger.info('progress', data);
}
});