Permalink
Browse files

Merge pull request #297 from anthonyshort/multi-remote-fix

Using the current remote to get the file path
  • Loading branch information...
2 parents ae27475 + 3957b24 commit f6e4557d811c42f7988f607554aee25b988375fb @tj tj committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Package.js
View
@@ -102,7 +102,7 @@ Package.prototype.join = function(path){
*/
Package.prototype.url = function(file){
- return this.remotes[0] + '/' + this.name + '/' + this.version + '/' + file;
+ return this.remote.href + '/' + this.name + '/' + this.version + '/' + file;
};
/**

0 comments on commit f6e4557

Please sign in to comment.