diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-12 10:55:02 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 13:14:54 -0500 |
commit | be54ba33ed1fed6ddef5d544c25b293a9669142f (patch) | |
tree | 6f33ca87175651e4f3cc77405e4ea8c8eff23f06 /app/models/commit.rb | |
parent | 02f48053f1328055bef548bf2627e8f71c919a11 (diff) | |
download | gitlab-ce-be54ba33ed1fed6ddef5d544c25b293a9669142f.tar.gz |
Refactor commit message for revert commit.
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 6 |
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? |