summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-12 10:55:02 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-02-19 13:14:54 -0500
commitbe54ba33ed1fed6ddef5d544c25b293a9669142f (patch)
tree6f33ca87175651e4f3cc77405e4ea8c8eff23f06 /app/models/commit.rb
parent02f48053f1328055bef548bf2627e8f71c919a11 (diff)
downloadgitlab-ce-be54ba33ed1fed6ddef5d544c25b293a9669142f.tar.gz
Refactor commit message for revert commit.
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index beae2fe7a1a..38bbc24fbfc 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -221,12 +221,12 @@ class Commit
def revert_message
description = if merged_merge_request
- "Reverts #{@merged_merge_request.to_reference}"
+ "This reverts merge request #{merged_merge_request.to_reference}"
else
- "Reverts #{sha}"
+ "This reverts commit #{sha}"
end
- "Revert \"#{title}\"".truncate(80) + "\n\n#{description}"
+ "Revert \"#{title}\"" + "\n\n#{description}"
end
def merge_commit?