summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-10 12:09:18 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-10 12:09:18 +0200
commit16697f6efa4653986753905ab9100fa11dde7f09 (patch)
tree8186f4ff4b90ac4c34ec22727b764f562d997f8d
parent6a90378daedcba7efc167cdfa0e1ac7306809391 (diff)
parent27900efb972b84b1a31f2a92cbc9272073a94338 (diff)
downloadgitlab-ce-16697f6efa4653986753905ab9100fa11dde7f09.tar.gz
Merge branch 'master' of github.com:gitlabhq/gitlabhq
-rw-r--r--app/views/admin/users/index.html.haml2
-rw-r--r--doc/install/installation.md10
-rw-r--r--doc/update/6.2-to-6.3.md7
-rw-r--r--lib/gitlab/oauth/user.rb2
4 files changed, 10 insertions, 11 deletions
diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml
index 9c5796a661d..950f1a02713 100644
--- a/app/views/admin/users/index.html.haml
+++ b/app/views/admin/users/index.html.haml
@@ -54,5 +54,5 @@
= link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-small success"
- else
= link_to 'Block', block_admin_user_path(user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn btn-small btn-remove"
- = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?", method: :delete, class: "btn btn-small btn-remove"
+ = link_to 'Destroy', [:admin, user], confirm: "USER #{user.name} WILL BE REMOVED! All tickets linked to this user will also be removed! Maybe block the user instead? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
= paginate @users, theme: "gitlab"
diff --git a/doc/install/installation.md b/doc/install/installation.md
index 3e90663dbd8..1b652d1e1dd 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -144,13 +144,10 @@ GitLab Shell is an ssh access and repository management software developed speci
cd /home/git
# Clone gitlab shell
- sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git
+ sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git -b v1.7.9
cd gitlab-shell
- # switch to right version
- sudo -u git -H git checkout v1.7.9
-
sudo -u git -H cp config.yml.example config.yml
# Edit config and replace gitlab_url
@@ -174,14 +171,11 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install
## Clone the Source
# Clone GitLab repository
- sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab
+ sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git -b 6-3-stable gitlab
# Go to gitlab dir
cd /home/git/gitlab
- # Checkout to stable release
- sudo -u git -H git checkout 6-3-stable
-
**Note:**
You can change `6-3-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server!
diff --git a/doc/update/6.2-to-6.3.md b/doc/update/6.2-to-6.3.md
index ad4a5095447..b7740a538e2 100644
--- a/doc/update/6.2-to-6.3.md
+++ b/doc/update/6.2-to-6.3.md
@@ -63,7 +63,12 @@ git diff 6-2-stable:config/gitlab.yml.example 6-3-stable:config/gitlab.yml.examp
* Make `/home/git/gitlab/config/gitlab.yml` same as https://github.com/gitlabhq/gitlabhq/blob/6-3-stable/config/gitlab.yml.example but with your settings.
* Make `/home/git/gitlab/config/unicorn.rb` same as https://github.com/gitlabhq/gitlabhq/blob/6-3-stable/config/unicorn.rb.example but with your settings.
-* Copy rack attack middleware config
+
+```bash
+# Copy rack attack middleware config
+cd /home/git/gitlab
+sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
+```
### 6. Update Init script
diff --git a/lib/gitlab/oauth/user.rb b/lib/gitlab/oauth/user.rb
index ea9badba2c3..529753c4019 100644
--- a/lib/gitlab/oauth/user.rb
+++ b/lib/gitlab/oauth/user.rb
@@ -28,8 +28,8 @@ module Gitlab
}
user = model.build_user(opts, as: :admin)
+ user.skip_confirmation!
user.save!
- user.confirm!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
if Gitlab.config.omniauth['block_auto_created_users'] && !ldap?