Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | | GitLab /api/allowed endpoint requires POST request | Dmitriy Zaporozhets | 2014-09-03 | 2 | -5/+27 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit made changes to GitLab shell to work with huge pushed (ex. 1k branhes) using POST request to API Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | | Update GitlabNet to match new logic | Dmitriy Zaporozhets | 2014-09-01 | 1 | -8/+4 | |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | | Remove update hook logic | Dmitriy Zaporozhets | 2014-09-01 | 1 | -58/+0 | |
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | | GitlabAccess and GitlabPostReceive classes added | Dmitriy Zaporozhets | 2014-09-01 | 3 | -3/+70 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gitlab Access handles security check. GitlabPostReceive creates a sidekiq job Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | | Use a different style of one-line classes | Jacob Vosmaer | 2014-08-27 | 1 | -1/+1 | |
| | | | | | ||||||
* | | | | | Handle invalid number of arguments | Jacob Vosmaer | 2014-08-27 | 1 | -3/+8 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a remote user with a valid SSH key runs something like 'ssh git@gitlab.example.com foobar', gitlab-shell would raise an exception in the GitlabShell#escape_path method. With this change, we catch an invalid number of arguments as soon as possible and exit. | |||||
* | | | | | use abort isntead of raise when checking path | Job van der Voort | 2014-08-27 | 1 | -1/+1 | |
| |/ / / |/| | | | ||||||
* | | | | Fix invalid repo_name/repo_path parsing by GitlabUpdate | Dmitriy Zaporozhets | 2014-08-13 | 2 | -12/+21 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | Adding support+tests for annotated tags. | Sean Edge | 2014-07-09 | 1 | -1/+6 | |
| | | | | ||||||
* | | | | Merge pull request #155 from ssandler/master | Dmitriy Zaporozhets | 2014-07-04 | 1 | -1/+1 | |
|\ \ \ \ | | | | | | | | | | | GitlabUpdate: use stripped path for repo_name | |||||
| * | | | | GitlabUpdate: use stripped path for repo_name | Scott Sandler | 2014-06-16 | 1 | -1/+1 | |
| | | | | | ||||||
* | | | | | Improve coverage. | Gabor Nagy | 2014-06-23 | 1 | -16/+19 | |
|/ / / / | ||||||
* | | | | Expliclity require 'timeout' from the stdlib | Jacob Vosmaer | 2014-06-10 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This avoids getting the following error on some platforms: NameError: uninitialized constant GitlabKeys::Timeout | |||||
* | | | | Use authorized_keys lock when add new key to file | Dmitriy Zaporozhets | 2014-05-31 | 1 | -3/+5 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | Put authorized_keys.lock in the .ssh directory | Jacob Vosmaer | 2014-05-30 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Use lock file when add or remove keys from authorized_keys file | Dmitriy Zaporozhets | 2014-04-18 | 1 | -14/+34 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This prevents concurrent modification of authorized_keys file Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | Merge pull request #145 from lsjostro/fix_env | Jacob Vosmaer | 2014-04-11 | 1 | -1/+1 | |
|\ \ \ \ | | | | | | | | | | | Preserve LD_LIBRARY_PATH for Kernel::exec | |||||
| * | | | | set LD_LIBRARY_PATH for Kernel::exec | Lars Sjöström | 2014-03-26 | 1 | -1/+1 | |
| |/ / / | ||||||
* | | | | Fix fatal: bad object 0000 when do new branch push | Dmitriy Zaporozhets | 2014-04-03 | 1 | -2/+6 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | Make force push detection actually work | Dmitriy Zaporozhets | 2014-04-03 | 2 | -2/+3 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | first setup to protect protected branched to force updates | Steven Thonus | 2014-03-25 | 2 | -2/+7 | |
|/ / / | | | | | | | | | | rebased for new code | |||||
* | | | Pass tag name to update hook too | Dmitriy Zaporozhets | 2014-03-20 | 1 | -6/+6 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Fix tests | Dmitriy Zaporozhets | 2014-03-19 | 1 | -2/+3 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Send api.allowed? request for both http and ssh push | Dmitriy Zaporozhets | 2014-03-19 | 2 | -21/+22 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Add gitlab-keys batch-add-keys | Jacob Vosmaer | 2014-03-14 | 1 | -0/+18 | |
| | | | | | | | | | | | | | | | This command is intended to be called by the GitLab Rails code when restoring an application backup. | |||||
* | | | Generate key_line in separate method | Jacob Vosmaer | 2014-03-14 | 1 | -1/+5 | |
| | | | ||||||
* | | | Add process wait for import | Dmitriy Zaporozhets | 2014-03-13 | 1 | -1/+3 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Dont import repo if exists | Dmitriy Zaporozhets | 2014-03-13 | 1 | -0/+3 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Merge branch 'import-timeout' into 'master'v1.8.3 | Dmitriy Zaporozhets | 2014-03-12 | 1 | -1/+19 | |
|\ \ \ | | | | | | | | | | | | | Import Timeout | |||||
| * | | | Use KILL instead of TERM | Dmitriy Zaporozhets | 2014-03-12 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
| * | | | Use Process spawn | Dmitriy Zaporozhets | 2014-03-12 | 1 | -2/+5 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
| * | | | Add support for import repo timeout | Dmitriy Zaporozhets | 2014-03-12 | 1 | -1/+16 | |
| | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | | Explain why GitlabShell#exec_cmd has no tests | Jacob Vosmaer | 2014-03-12 | 1 | -0/+1 | |
|/ / / | ||||||
* | | | Fix typo in Kernel::exec options | Jacob Vosmaer | 2014-03-12 | 1 | -1/+1 | |
| | | | ||||||
* | | | Restrict env variables passed to git-xxx-pack | Jacob Vosmaer | 2014-03-07 | 1 | -2/+2 | |
| | | | ||||||
* | | | Make GitlabProjects#create_hooks a class method | Jacob Vosmaer | 2014-02-26 | 1 | -9/+9 | |
| | | | ||||||
* | | | Merge branch 'gitlab_keys_return_values' of ↵ | Dmitriy Zaporozhets | 2013-11-25 | 1 | -0/+3 | |
|\ \ \ | | | | | | | | | | | | | /home/git/repositories/gitlab/gitlab-shell | |||||
| * | | | Fix return values in GitlabKeys | Jacob Vosmaer | 2013-11-20 | 1 | -0/+3 | |
| | | | | ||||||
* | | | | Merge branch 'remove_open3' of /home/git/repositories/gitlab/gitlab-shell | Dmitriy Zaporozhets | 2013-11-21 | 2 | -2/+0 | |
|\ \ \ \ | ||||||
| * | | | | Remove unused open3 dependency | Jacob Vosmaer | 2013-11-19 | 2 | -2/+0 | |
| | | | | | ||||||
* | | | | | Removing extra space from the end of gitlab_update error messages | Jonathan A. Sternberg | 2013-11-20 | 1 | -2/+2 | |
| | | | | | ||||||
* | | | | | Display error and send failure exit status if redis-cli fails | Jonathan A. Sternberg | 2013-11-20 | 1 | -1/+4 | |
| |/ / / |/| | | | | | | | | | | | | | | | This should help prevent a misconfigured redis causing silent failures and fix issue #108. | |||||
* | | | | Fix relative path detection for ssh://host:port/repo.git | Dmitriy Zaporozhets | 2013-11-20 | 1 | -1/+3 | |
|/ / / | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Escape repository path | Dmitriy Zaporozhets | 2013-11-13 | 1 | -1/+9 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Bypass shell and use stdlib JSON for GitlabUpdate | Jacob Vosmaer | 2013-11-08 | 2 | -5/+7 | |
| | | | ||||||
* | | | Separate options from arguments with -- | Jacob Vosmaer | 2013-11-07 | 1 | -4/+4 | |
| | | | ||||||
* | | | Prevent update-head fail if branch not present in refs/head | Dmitriy Zaporozhets | 2013-11-06 | 1 | -5/+0 | |
| | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | |||||
* | | | Merge branch 'banish_shell_from_gitlab_keys' of ↵ | Dmitriy Zaporozhets | 2013-11-05 | 1 | -3/+8 | |
|\ \ \ | | | | | | | | | | | | | /home/git/repositories/gitlab/gitlab-shell | |||||
| * | | | Use Ruby instead of the Bourne shell | Jacob Vosmaer | 2013-11-02 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Remove sed invocation from GitlabKeys | Jacob Vosmaer | 2013-11-02 | 1 | -2/+7 | |
| | | | |