Skip to content

Commit 39d8b86

Browse files
committed
Merge pull request darcyclarke#6 from deedubs/patch-1
Be sure to include the branch when requesting file contents. Hawt!
2 parents d62ef84 + 3e53ab0 commit 39d8b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
el.addClass('active');
193193
} else {
194194
$.ajax({
195-
url: 'https://api.github.com/repos/' + _this.settings.user + '/' + _this.settings.name + '/contents/' + link.data('path'),
195+
url: 'https://api.github.com/repos/' + _this.settings.user + '/' + _this.settings.name + '/contents/' + link.data('path') + '?ref=' + _this.settings.branch,
196196
type: 'GET',
197197
data: {},
198198
dataType: 'jsonp',

0 commit comments

Comments
 (0)