Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
5e12b3d8
Commit
5e12b3d8
authored
Jan 05, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer leading dots over trailing dots
parent
0b3b56b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/services/create_branch_service.rb
app/services/create_branch_service.rb
+2
-2
app/workers/emails_on_push_worker.rb
app/workers/emails_on_push_worker.rb
+4
-4
No files found.
app/services/create_branch_service.rb
View file @
5e12b3d8
class
CreateBranchService
<
BaseService
def
execute
(
branch_name
,
ref
)
result
=
ValidateNewBranchService
.
new
(
project
,
current_user
)
.
execute
(
branch_name
)
result
=
ValidateNewBranchService
.
new
(
project
,
current_user
)
.
execute
(
branch_name
)
return
result
if
result
[
:status
]
==
:error
...
...
app/workers/emails_on_push_worker.rb
View file @
5e12b3d8
...
...
@@ -33,15 +33,15 @@ class EmailsOnPushWorker
reverse_compare
=
false
if
action
==
:push
compare
=
CompareService
.
new
(
project
,
after_sha
)
.
execute
(
project
,
before_sha
)
compare
=
CompareService
.
new
(
project
,
after_sha
)
.
execute
(
project
,
before_sha
)
diff_refs
=
compare
.
diff_refs
return
false
if
compare
.
same
if
compare
.
commits
.
empty?
compare
=
CompareService
.
new
(
project
,
before_sha
)
.
execute
(
project
,
after_sha
)
compare
=
CompareService
.
new
(
project
,
before_sha
)
.
execute
(
project
,
after_sha
)
diff_refs
=
compare
.
diff_refs
reverse_compare
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment