Skip to content

Commit

Permalink
Do not print GitHub link before the first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
koraktor committed Oct 6, 2017
1 parent 537cb9d commit e9ce80f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ protected void run() throws GitRepositoryException {
if (tags.containsKey(this.currentCommit.getId())) {
this.lastTag = this.currentTag;
this.currentTag = tags.get(this.currentCommit.getId());
if (createGitHubLinks) {
if (this.lastTag == null) {
if (createGitHubLinks && !firstCommit) {
if (lastTag == null) {
insertGitHubLink(printStream, currentTag, repository.getBranch());
} else {
insertGitHubLink(printStream, currentTag, lastTag);
Expand Down

0 comments on commit e9ce80f

Please sign in to comment.