summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-03-23 16:46:23 +0000
committerRobert Speicher <robert@gitlab.com>2016-03-23 16:46:23 +0000
commit0e85a8b816be62b3ef8d854630b015eb4b29398d (patch)
tree3be2c62b50dcfb298575a759dfc651c3de10d220
parent1f5d5af4233e51350976b3aca62e059345089231 (diff)
parentf4a361a2a878086405240490567668dfac8d9bd6 (diff)
downloadgitlab-ce-0e85a8b816be62b3ef8d854630b015eb4b29398d.tar.gz
Merge branch 'issue_14453' into 'master'
Strip commit title when creating revert commit. Fixes #14453 See merge request !3352
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index ce0b85d50cf..d0dbe009d0d 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -230,7 +230,7 @@ class Commit
end
def revert_message
- %Q{Revert "#{title}"\n\n#{revert_description}}
+ %Q{Revert "#{title.strip}"\n\n#{revert_description}}
end
def reverts_commit?(commit)