summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorFotis Gimian <fgimiansoftware@gmail.com>2015-03-31 20:25:50 +1100
committerJeroen van Baarsen <jeroenvanbaarsen@gmail.com>2015-05-15 13:01:10 +0200
commitd74673fd435e5238b5fb8d29735f31175c71e45f (patch)
tree489098c476f2de6543ffc7a3de2b401a0dc4e49a /lib/tasks
parentbe969bb4deb0d0d63156720d94b0cbf00a5ded11 (diff)
downloadgitlab-ce-d74673fd435e5238b5fb8d29735f31175c71e45f.tar.gz
Ensure that the first added admin performs repository imports
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/import.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake
index 20abb2fa500..7c98ad3144f 100644
--- a/lib/tasks/gitlab/import.rake
+++ b/lib/tasks/gitlab/import.rake
@@ -35,7 +35,7 @@ namespace :gitlab do
if project
puts " * #{project.name} (#{repo_path}) exists"
else
- user = User.admins.first
+ user = User.admins.reorder("id").first
project_params = {
name: name,