github.js: fix this.author null error

This commit is contained in:
XhmikosR 2013-02-23 06:42:09 +02:00 committed by Daniel Marjamäki
parent d7d55de678
commit 87abab3765
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,9 @@ jQuery.fn.listCommits = function(username, repository, branch) {
$(commits).each(function(i) {
var githubUrl = 'https://github.com/' + username + '/' + repository + '/commit/' + this.sha;
var shortMessage = cutLines(this.commit.message);
var author = this.author.login;
if (this.author !== null) {
var author = this.author.login;
}
if (author === '') {
author = this.author.name;
}

File diff suppressed because one or more lines are too long