Fix bower init targeting ~commit instead of *, closes #385.

This commit is contained in:
André Cruz
2013-04-25 18:20:05 +01:00
parent c853c64a8f
commit 09f702879e

View File

@@ -40,7 +40,7 @@ Init.prototype.getDependenciesJSON = function () {
pkg.on('loadJSON', function () {
// TODO: use fetch endpoint here
json[pkg.name] = '~' + pkg.version;
json[pkg.name] = pkg.commit ? '*' : '~' + pkg.version;
remaining -= 1;
if (remaining === 0) {
this.manager.emit('loadDependencies', json);