diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2018-03-02 21:04:32 +0100 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2018-03-02 21:04:32 +0100 |
commit | a99a21cce23460aae3a63a7bb5bfebe188f6df1f (patch) | |
tree | 0af619a4069c185574966902096f85ac47b26c7e | |
parent | ddad22c4c4fde6dbec4a9224a3c2500af8bc7bf0 (diff) | |
download | gitlab-ce-a99a21cce23460aae3a63a7bb5bfebe188f6df1f.tar.gz |
Keep note commit around if commit_id is presentfix/find-commit-with-empty-rev
Closes gitaly#1054
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index d7a67ec277c..a3e40fce0fe 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -424,7 +424,7 @@ class Note < ActiveRecord::Base private def keep_around_commit - project.repository.keep_around(self.commit_id) + project.repository.keep_around(self.commit_id) if self.commit_id.present? end def nullify_blank_type |