Marvin Frick
1f902c2464
fixes the `block_removed_ldap_users` rake task
...
In e23a26a (and later 1bc9936 ) the API for Gitlab::LDAP::Adapter was
changed. I assume this rake task was an oversight in the refactoring of
the changed class.
While being on it, I noticed that already blocked users cannot be
blocked again.
2014-11-12 12:06:24 +01:00
Dmitriy Zaporozhets
6641341b65
Merge pull request #8254 from cirosantilli/factor-get-shell-version
...
Factor GITLAB_SHELL_VERSION get method
2014-11-08 11:04:56 +02:00
Ciro Santilli
e4a38e4471
Factor using Repository#path_to_repo
2014-11-05 17:51:49 +01:00
Ciro Santilli
586590d20e
Remove unused has_gitlab_shell3? method
2014-11-05 17:24:20 +01:00
Ciro Santilli
f36db59d97
Factor GITLAB_SHELL_VERSION get method
2014-11-05 17:16:04 +01:00
Jacob Vosmaer
e00e67db42
Drop all Postgres sequences during backup restore
2014-10-28 18:52:21 +01:00
Dmitriy Zaporozhets
f4178f9601
Merge pull request #8005 from cirosantilli/settings-to-gitlab-config
...
Use Gitlab.config instead of Settings everywhere
2014-10-27 19:18:48 +02:00
Robert Schilling
199029b842
Merge pull request #8158 from cirosantilli/basename-dirname-split
...
Merge File basename and direname into split
2014-10-25 10:35:07 +02:00
Ciro Santilli
706b6b5acb
Fix import.rake failed import if project name is
...
also an existing namespace. E.g., when trying to import
group/root.git, that would fail if there is an user called root.
2014-10-24 17:26:33 +02:00
Ciro Santilli
9be12dd9ca
Merge File basename and direname into split
...
Faster because only does one split in that case.
2014-10-23 23:10:54 +02:00
Jacob Vosmaer
90e960f4ce
Merge pull request #8088 from cirosantilli/sh-str-to-args
...
Use argument list for sh instead of string
2014-10-23 12:23:40 +02:00
Dmitriy Zaporozhets
ce01916a68
Merge pull request #8026 from HerrBerg/master
...
rake:import:repos: fix exclude wiki regex for importing repositories
2014-10-22 16:55:25 +03:00
Dmitriy Zaporozhets
05f19392b7
Make gitlab ldap check work for old and new syntax
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-10-22 11:11:18 +03:00
Dmitriy Zaporozhets
da21b9e7d0
Fix rake gitlab:ldap:check
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-10-21 18:26:40 +03:00
Ciro Santilli
a3623a9691
Use argument list for sh instead of string
...
Faster, more portable and less error prone since no shell expansion.
2014-10-18 22:49:56 +02:00
Ciro Santilli
2901042196
Replace match with end_with: more readable, faster
2014-10-18 22:41:39 +02:00
Ciro Santilli
39c66c822e
Use Gitlab.config instead of Settings everywhere
2014-10-15 23:01:31 +02:00
HerrBerg
fc6a291af3
fix exclude wiki regex
...
the new regex allows importing repositories with repository name ending with wiki but still exclude gitlab wiki repositories
2014-10-13 16:26:35 +02:00
Marc Aubé
ae5381f2cc
Update import.rake
...
Output a message when a repo is skipped
2014-10-07 14:13:50 -04:00
Dmitriy Zaporozhets
28b6f09fcc
Merge pull request #7823 from cirosantilli/test-fetch-shell
...
Only clone GitLab Shell on tests if necessary.
2014-09-24 12:58:10 +03:00
Ciro Santilli
065ab3e5f3
Only clone GitLab Shell on tests if necessary.
2014-09-22 21:37:52 +02:00
Dmitriy Zaporozhets
8cd882355e
Merge branch '7-4-pre' into 'master'
...
7.4 development
Development branch during `master` code freeze for 7.3
See merge request !1096
2014-09-22 17:25:49 +00:00
Jacob Vosmaer
4f61061cfb
Support sockets in 'rake gitlab 🐚 install'
2014-09-22 15:02:46 +02:00
Dmitriy Zaporozhets
8bff9a4098
Merge branch 'refator-members-logic' of https://dev.gitlab.org/dzaporozhets/gitlabhq into 7-4-pre
2014-09-17 21:31:41 +03:00
Jacob Vosmaer
45a6b62407
Check for hooks directory symlink in gitlab:check
2014-09-16 17:11:25 +02:00
Dmitriy Zaporozhets
8210d81381
Replace old references of users_project & users_group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-14 19:51:54 +03:00
Dmitriy Zaporozhets
c69b8e0459
Huge replace of old users_project and users_group references
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-14 19:32:51 +03:00
Jacob Vosmaer
042465c448
Use create-hooks instead of rewrite-hooks.sh
...
The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's
create-hooks script.
2014-09-08 10:16:15 +02:00
Ben Bodenmiller
5e2bce0fef
change git to git bin path
2014-08-30 17:09:32 -07:00
Jacob Vosmaer
37d6293842
Write authorized_keys in tmp/tests during tests
...
This should reduce the number of gitlab-shell error messages while the
tests run.
2014-08-26 11:33:26 +02:00
Jacob Vosmaer
b752ee8aa9
Add rake task to drop a project's PostReceive jobs
2014-08-21 16:02:04 +02:00
Dmitriy Zaporozhets
dbb1cb30a3
Merge pull request #7441 from bbodenmiller/patch-7
...
add git config --global core.autocrlf check
2014-08-13 16:39:58 +03:00
Ben Bodenmiller
ecd33c9d92
add git config --global core.autocrlf check
...
core.autocrlf was added to install guide in 2d681c0d1e but not added to check script
2014-08-04 20:41:20 -07:00
Dmitriy Zaporozhets
394ac378f8
Fix markdown tests. Use new repo for testing. Fixed gitlab-shell test setup
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-31 23:05:30 +03:00
Dmitriy Zaporozhets
3a017a4e3c
Get gitlab-shell verion from file for install rake task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-31 22:34:25 +03:00
Dmitriy Zaporozhets
059f3a34ac
Check ruby version to be >= 2.0.0
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-23 11:44:27 +03:00
Bastian Krol
239d942606
print validation errors when import fails
2014-07-09 14:49:53 +02:00
Marin Jankovski
553f3aba48
Remove duplicated calls.
2014-07-07 14:19:32 +02:00
Marin Jankovski
4c68d2387e
Add sanitize option to gitlab check rake task.
2014-07-07 14:12:06 +02:00
Dmitriy Zaporozhets
c8ac0ab392
Merge pull request #7208 from MrMarvin/ce_rake_cleanup_ldap_users
...
Adds rake task to clean up deleted LDAP users
2014-07-04 17:10:06 +03:00
Marvin Frick
ec61dfdc8c
adds rake task to clean up deleted LDAP users
2014-06-26 16:09:15 +02:00
Ciro Santilli
a7e0ca9e83
Add trailing newline to all text files.
...
Present in the large majority of files of each respective type.
2014-06-21 11:20:22 +02:00
Jacob Vosmaer
90bfe286a6
Skip init script checks on omnibus-gitlab
...
Omnibus-gitlab does not use the init script.
2014-06-12 09:31:17 +02:00
Marin Jankovski
dca6c490cc
Update check task and add to monthly release doc lines about gitlab_shell_version file.
2014-06-10 11:16:47 +02:00
Dmitriy Zaporozhets
94b0f1b2bb
Bump gitlab-shell version
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-31 15:57:22 +03:00
Dmitriy Zaporozhets
bd7c3955b1
Merge pull request #6882 from Tandrial/master
...
Satellites access fix
2014-05-30 16:59:02 +03:00
Dmitriy Zaporozhets
6ba4cb1d2b
Remove old rake task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-28 19:01:19 +03:00
Marin Jankovski
2341cefd6f
Move from script to bin directory.
2014-05-27 17:14:41 +02:00
Dmitriy Zaporozhets
c9020ae586
Fix test.rake
2014-05-26 20:30:45 +00:00
Dmitriy Zaporozhets
e426d43924
Check return system value for gitlab test rake tasks
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-26 21:54:57 +03:00
Marin Jankovski
b019c06195
Required shell version is now 1.9.4.
2014-05-22 11:01:01 +02:00
Dmitriy Zaporozhets
fd7a221cca
Change gitlab:test task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-06 09:07:15 +03:00
Dmitriy Zaporozhets
87c397f577
More fixes to gitlab 🐚 install
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-02 14:13:45 +03:00
Dmitriy Zaporozhets
dd47f9532f
Fix gitlab-shell setup rake task
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-02 13:46:32 +03:00
Dmitriy Zaporozhets
85b5d203ac
Merge branch 'improve-gitlab-shell-installation' of https://github.com/pkgr/gitlabhq into pkgr-improve-gitlab-shell-installation
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Conflicts:
doc/install/installation.md
2014-05-02 13:30:26 +03:00
Michael Krane
a5e20638c2
Satellites access fix
2014-04-27 11:36:45 +02:00
Dmitriy Zaporozhets
2a99f18478
Merge branch 'mysql_field_limits' into 'master'
...
Adjust MySQL limits for existing installations
2014-04-24 17:37:38 +00:00
Jacob Vosmaer
77e565d347
Bump the required gitlab-shell version to 1.9.3
2014-04-23 11:13:21 +02:00
Jacob Vosmaer
cd61239540
Move the adapter check to the migration
2014-04-23 11:08:51 +02:00
Cyril Rohr
301c4068e1
Add rake task to install or upgrade gitlab-shell installation.
2014-04-08 15:12:18 +01:00
Dmitriy Zaporozhets
665a69941b
Revert "Allow to parse heroku-generated database.yml config file."
...
This reverts commit 8a56e7db48 .
Because it actually breaks db setup for mysql
2014-04-08 14:05:57 +03:00
Cyril Rohr
8a56e7db48
Allow to parse heroku-generated database.yml config file.
2014-04-07 15:48:51 +01:00
Jacob Vosmaer
bcfd9386f5
Fix popen bug in `rake gitlab:satellites:create`
...
The Satellite#create method no longer sets the `$?` global variable.
Instead, we can use the method return value to test if the satellite was
created successfully
2014-04-07 11:22:27 +02:00
Marin Jankovski
03b8dcce87
Change the satellites directory permission in the install guide, add to rake check task.
2014-04-02 15:25:26 +02:00
Jacob Vosmaer
bbea1d1a72
Include the Sidekiq version in gitlab:env:info
2014-04-01 16:05:26 +02:00
Jacob Vosmaer
f48fc3c6cb
Add a rake task that drops all tables
2014-03-28 13:37:09 +01:00
Marin Jankovski
7bf92b368f
Ldap check recognize ldap user filter.
2014-03-26 15:38:14 +01:00
Marin Jankovski
895c913247
Use the latest tag, 1.9.1 for gitlab-shell.
2014-03-21 12:42:59 +01:00
Dmitriy Zaporozhets
e013be10d7
GitLab requires gitlab-shell v1.9.0
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-20 13:37:35 +02:00
Jacob Vosmaer
acaf297846
Merge pull request #5993 from DarkHorseComics/bypass-commented-sqlite
...
Explain what to do about legacy sqlite in database.yml
2014-03-18 10:48:27 +01:00
Dmitriy Zaporozhets
8fa53ce43d
Merge branch 'check_orphaned_users_groups' into 'master'
...
Check Orphaned Users Groups
2014-03-18 07:14:08 +00:00
Jamey J. DeOrio
37192d5e18
Add more descriptive line for resolving sqlite error during check
2014-03-17 09:43:27 -07:00
Jacob Vosmaer
5e7e814e81
Drop UsersGroup orphans using `rails runner`
2014-03-17 14:42:20 +01:00
Jacob Vosmaer
4aa3ce7534
Add check for orphaned UsersGroups
2014-03-14 17:25:11 +01:00
Jacob Vosmaer
090ed21e6f
Batch key import requires gitlab-shell 1.8.5
2014-03-14 15:58:47 +01:00
Jacob Vosmaer
779fa4a7b7
Use batch_add_keys in `rake gitlab 🐚 setup`
2014-03-14 15:49:11 +01:00
Dmitriy Zaporozhets
bce8edbbcc
Require gitlab-shell v1.8.4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-14 12:57:26 +02:00
Dmitriy Zaporozhets
f6f80659ec
Override rake spec and rake spinach tasks
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-14 10:44:16 +02:00
Dmitriy Zaporozhets
b0a86cb3ba
Use gitlab:setup inside gitlab:test
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-13 11:33:33 +02:00
Dmitriy Zaporozhets
46cc3b22c9
Add mysql limits to db during setup
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-13 10:47:53 +02:00
Dmitriy Zaporozhets
92a928468f
Merge branch 'catch_missing_command' into 'master'
...
Catch missing commands in Rake tasks
2014-03-10 18:48:31 +00:00
Jacob Vosmaer
ad71eca8bb
Catch missing commands in rake tasks with ''
2014-03-10 18:14:59 +01:00
Dmitriy Zaporozhets
dca8f6d4a6
Merge pull request #6492 from tsigo/gitlab-shell-custom-path
...
Respect custom gitlab_shell path in gitlab:gitlab_shell:check task
2014-03-10 17:30:21 +02:00
Robert Speicher
c5f76e5939
Popen (at least on OSX) expects an Array, not a String
...
This was causing the gitlab:check task to exit prematurely with the
error "System commands must be given as an array of strings."
2014-03-07 21:39:48 -05:00
Robert Speicher
30f8713aa1
Respect custom gitlab_shell path in gitlab:gitlab_shell:check task
...
Prior to this change, if I customized the config value of
`gitlab.gitlab_shell.path`, the check would ignore this value in favor
of `"~<gitlab.gitlab_shell.ssh_user>/gitlab-shell/"` resulting in a
failed check when the configuration was otherwise valid.
2014-03-07 21:05:56 -05:00
Jacob Vosmaer
d6b0ac96f7
Invoke Kernel#system with separate arguments
2014-03-03 08:40:30 +01:00
Jacob Vosmaer
2b816075dc
Replace backticks with Gitlab::Popen
2014-03-03 08:40:29 +01:00
Dmitriy Zaporozhets
168e0341a3
Merge pull request #5520 from gabetax/rake_group_bulk_add_permissions
...
add rake gitlab:import: all_users_to_all_groups and user_to_groups
2014-02-12 09:40:40 +02:00
Johannes Schleifenbaum
7085892e47
remove remaining python references
2014-02-03 11:25:47 +01:00
Dmitriy Zaporozhets
9e181d36ea
Dont check for python any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-31 13:09:10 +02:00
Dmitriy Zaporozhets
4d56c359d3
Merge pull request #6075 from skv-headless/remove_deprecated_finders
...
Remove deprecated finders
2014-01-22 11:04:56 -08:00
Jacob Vosmaer
2f4d0a3008
Rephrase LDAP check script output
...
The previous phrasing lead some people to believe that there is a limit
on the number of LDAP users that can sign in to a GitLab instance. That
is not the case; the limit in the check script only applies to the
diagnostic information result set, so that running `rake gitlab:check`
does not output thousands of LDAP users.
2014-01-21 11:05:03 +01:00
dosire
2ddfa882c0
Better wording of the import instructions.
2014-01-20 10:44:40 +01:00
skv
a3f645ef51
Remove deprecated finders
2014-01-19 23:39:56 +04:00
Dmitriy Zaporozhets
4d7792bc38
Merge branch 'explain_ldap_check' into 'master'
...
Improve the explanation of the LDAP check script
2014-01-17 14:14:05 +00:00
Dmitriy Zaporozhets
efa10c819d
Replace context with service in lib
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-16 20:35:21 +02:00
Jacob Vosmaer
af9a14c49c
Explain that `limit` only applies to the check
2014-01-16 18:40:45 +01:00
Dmitriy Zaporozhets
23d180f5f1
Merge branch 'ldap_check' of /home/git/repositories/gitlab/gitlabhq
2013-12-04 14:56:19 +00:00
Jacob Vosmaer
80302a0f6f
Limit the number of results in gitlab:ldap:check
2013-12-03 18:51:21 +01:00
Jacob Vosmaer
376cfc6ac6
Give more information in rake gitlab:ldap:check
2013-11-28 18:12:30 +01:00