Prefer leading dots over trailing dots
This commit is contained in:
parent
a30f278bde
commit
dea589d635
2 changed files with 4 additions and 4 deletions
|
@ -169,8 +169,8 @@ class MergeRequestDiff < ActiveRecord::Base
|
|||
# When compare merge request versions we want diff A..B instead of A...B
|
||||
# so we handle cases when user does squash and rebase of the commits between versions.
|
||||
# For this reason we set straight to true by default.
|
||||
CompareService.new(project, head_commit_sha).
|
||||
execute(project, sha, straight: straight)
|
||||
CompareService.new(project, head_commit_sha)
|
||||
.execute(project, sha, straight: straight)
|
||||
end
|
||||
|
||||
def commits_count
|
||||
|
|
|
@ -70,8 +70,8 @@ module Commits
|
|||
# Temporary branch exists and contains the change commit
|
||||
return if repository.find_branch(new_branch)
|
||||
|
||||
result = ValidateNewBranchService.new(@project, current_user).
|
||||
execute(new_branch)
|
||||
result = ValidateNewBranchService.new(@project, current_user)
|
||||
.execute(new_branch)
|
||||
|
||||
if result[:status] == :error
|
||||
raise ChangeError, "There was an error creating the source branch: #{result[:message]}"
|
||||
|
|
Loading…
Reference in a new issue