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
Léo-Paul Géneau
gitlab-ce
Commits
31704680
Commit
31704680
authored
Nov 02, 2016
by
Elan Ruusamäe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post_receive: accept any user email from last commit
parent
e4c05de7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
changelogs/unreleased/post_receive-any-email.yml
changelogs/unreleased/post_receive-any-email.yml
+4
-0
lib/gitlab/identifier.rb
lib/gitlab/identifier.rb
+1
-1
No files found.
changelogs/unreleased/post_receive-any-email.yml
0 → 100644
View file @
31704680
---
title
:
"
post_receive:
accept
any
user
email
from
last
commit"
merge_request
:
7225
author
:
Elan Ruusamäe
lib/gitlab/identifier.rb
View file @
31704680
...
...
@@ -24,7 +24,7 @@ module Gitlab
email
=
commit
.
author_email
identify_with_cache
(
:email
,
email
)
do
User
.
find_by
(
email:
email
)
User
.
find_by
_any_email
(
email
)
end
end
...
...
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