Skip to content

Commit

Permalink
Fix broken travis branches
Browse files Browse the repository at this point in the history
Hello,

Looks like when you request a build status for a branch it ignores the branch!
Seems a typo in the code.

Jason
  • Loading branch information
driskell committed Oct 13, 2015
1 parent f207b4f commit cc070f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ cache(function(data, match, sendBadge, request) {
uri: 'https://api.travis-ci.org/' + userRepo + '.svg',
};
if (branch != null) {
options.path += '?branch=' + branch;
options.uri += '?branch=' + branch;
}
var badgeData = getBadgeData('build', data);
request(options, function(err, res) {
Expand Down

0 comments on commit cc070f5

Please sign in to comment.