diff options
author | William George <code@williamgeorge.co.uk> | 2018-10-18 12:06:44 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-10-18 12:06:44 +0300 |
commit | 1b153d497b6948932b0de2f0088fe7192eb0994a (patch) | |
tree | a4f93a1c3a12314b54b2486d5b471c929d4e7003 /lib/tasks | |
parent | c5d8e7fcee6bb15376902e8f1336f1ed368b9da8 (diff) |
Make getting a user by the username case insensitive
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/import.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index fc59b3f937d..a16d4c47273 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -9,7 +9,7 @@ class GithubImport def initialize(token, gitlab_username, project_path, extras) @options = { token: token } @project_path = project_path - @current_user = User.find_by(username: gitlab_username) + @current_user = UserFinder.new(gitlab_username).find_by_username raise "GitLab user #{gitlab_username} not found. Please specify a valid username." unless @current_user |