summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorWilliam George <code@williamgeorge.co.uk>2018-10-18 09:06:44 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-10-18 09:06:44 +0000
commit1b153d497b6948932b0de2f0088fe7192eb0994a (patch)
treea4f93a1c3a12314b54b2486d5b471c929d4e7003 /bin
parentc5d8e7fcee6bb15376902e8f1336f1ed368b9da8 (diff)
downloadgitlab-ce-1b153d497b6948932b0de2f0088fe7192eb0994a.tar.gz
Make getting a user by the username case insensitive
Diffstat (limited to 'bin')
-rwxr-xr-xbin/profile-url2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/profile-url b/bin/profile-url
index d8d09641624..9e8585aabba 100755
--- a/bin/profile-url
+++ b/bin/profile-url
@@ -48,7 +48,7 @@ require File.expand_path('../config/environment', File.dirname(__FILE__))
result = Gitlab::Profiler.profile(options[:url],
logger: Logger.new(options[:sql_output]),
post_data: options[:post_data],
- user: User.find_by_username(options[:username]),
+ user: UserFinder.new(options[:username]).find_by_username,
private_token: ENV['PRIVATE_TOKEN'])
printer = RubyProf::CallStackPrinter.new(result)