BigW Consortium Gitlab

Commit ef591b87 by Rubén Dávila Committed by Robert Speicher

Fix commit message plus other little fix.

parent b0693318
......@@ -220,7 +220,7 @@ class Commit
end
def revert_message
"Revert \"#{safe_message.lines.first}\"".truncate(80) + "\n\nReverts #{to_reference}"
"Revert \"#{safe_message.lines.first.chomp}\"".truncate(80) + "\n\nReverts #{to_reference}"
end
def is_a_merge_commit?
......
......@@ -628,8 +628,7 @@ class Repository
target_sha = find_branch(target_branch).try(:target)
# First make revert in temp branch
rm_branch(user, target_branch) if target_sha
success = revert_commit(user, commit, target_branch, base_branch)
success = target_sha ? true : revert_commit(user, commit, target_branch, base_branch)
# Make the revert happen in the target branch
source_sha = find_branch(target_branch).target
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment