mirror of
https://github.com/bower/bower.git
synced 2026-02-04 02:54:56 -05:00
Fix bug with -f option, add compatibility with repos that do not have tags.
This fixes the fact that if a repo do not have tags, install/update wouldn't fetch new commits.
This commit is contained in:
@@ -91,8 +91,8 @@ Manager.prototype.loadJSON = function () {
|
||||
fs.readFile(json, 'utf8', function (err, json) {
|
||||
if (err) return this.emit('error', err);
|
||||
this.json = JSON.parse(json);
|
||||
this.name = this.json.name;
|
||||
this.version = this.json.version;
|
||||
this.version = json.version;
|
||||
if (!this.name) this.name = json.name;
|
||||
this.emit('loadJSON');
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user