diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-21 17:34:12 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-21 17:34:12 +0200 |
commit | 464c939a7e55f9677b5c1f25b50c31f7d10660ea (patch) | |
tree | cd95c626ab8f8117fd71c06339c4b37558b4128a /app/services/system_note_service.rb | |
parent | 9c61b73c21f70b3f4a7e3e8f4b7e4d8ad0544094 (diff) | |
download | gitlab-ce-464c939a7e55f9677b5c1f25b50c31f7d10660ea.tar.gz |
Clean up MR refresh service somewhat.dm-issue-3140
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r-- | app/services/system_note_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 37f454cfc3f..708c2f00486 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -327,7 +327,7 @@ class SystemNoteService commit_ids = if count == 1 existing_commits.first.short_id else - if oldrev + if oldrev && !Gitlab::Git.blank_ref?(oldrev) "#{Commit.truncate_sha(oldrev)}...#{existing_commits.last.short_id}" else "#{existing_commits.first.short_id}..#{existing_commits.last.short_id}" |