Can't really determine branch of js-select-button, GitHub trim long branch name in it; reverse to full determination
This commit is contained in:
parent
0be2b202e9
commit
1fb23f22d0
|
@ -90,7 +90,9 @@
|
|||
// Not a code page, skip
|
||||
if (match[3] && !~['tree', 'blob'].indexOf(match[3])) return false
|
||||
|
||||
var branch = $('*[data-master-branch] > .js-select-button').text() || 'master'
|
||||
var branch = $('*[data-master-branch]').data('ref') ||
|
||||
$('*[data-master-branch] > .js-select-button').text() ||
|
||||
'master'
|
||||
return {
|
||||
username : match[1],
|
||||
reponame : match[2],
|
||||
|
|
Loading…
Reference in New Issue