diff options
author | Rémy Coutable <remy@rymai.me> | 2016-02-22 15:46:39 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-02-22 18:33:02 +0100 |
commit | 96ed5c5114e7863d4d0731ccea9da99696a867a4 (patch) | |
tree | c81ac1ed703affc3ef13ffcb55e278612471b624 /app/models/commit.rb | |
parent | 96ce80d5789e396c0071b48a79bd3f98a1d66ea4 (diff) | |
download | gitlab-ce-96ed5c5114e7863d4d0731ccea9da99696a867a4.tar.gz |
Ensure we don't check a commit's description for revert message if it has no description
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index b99abb540ea..3224f5457f0 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -232,7 +232,7 @@ class Commit end def reverts_commit?(commit) - description.include?(commit.revert_description) + description? && description.include?(commit.revert_description) end def merge_commit? |