summaryrefslogtreecommitdiff
path: root/lib/gitlab_shell.rb
Commit message (Collapse)AuthorAgeFilesLines
* Write GitlabShell error to stderr.nice-error-messageDouwe Maan2015-04-061-18/+30
|
* Fail early on invalid input (raise ... unless ...)Jacob Vosmaer2015-02-201-34/+28
| | | | | This intention of this change is to make the normal flow of execution easier to read, and to prevent mistakes in deeply nested if-else trees.
* Immediatly raise exception if git-annex is disabledDmitriy Zaporozhets2015-02-191-17/+25
|
* Safer line sub for git-annex commandv2.5.2Dmitriy Zaporozhets2015-02-181-1/+1
|
* Fix syntax of git init commandDmitriy Zaporozhets2015-02-171-1/+1
|
* Fix git-annex init repoDmitriy Zaporozhets2015-02-171-3/+3
|
* Make fixes to pass rubocopDmitriy Zaporozhets2015-02-161-1/+1
|
* Add config option to disable git-annexDmitriy Zaporozhets2015-02-161-4/+4
|
* Enable git-annex on first commandDmitriy Zaporozhets2015-02-131-9/+14
|
* Improve logging for git-annexDmitriy Zaporozhets2015-02-121-1/+4
|
* Merge branch 'master' into git-annexDmitriy Zaporozhets2015-02-121-14/+12
|\ | | | | | | | | Conflicts: lib/gitlab_shell.rb
| * Log full Net::HTTP error.Douwe Maan2015-02-121-1/+0
| |
| * Show nice error message when internal API is unreachable.Douwe Maan2015-02-111-11/+12
| |
* | Enable git-annex validate accessGitLab2015-02-121-6/+5
| |
* | Patch gitlab-shell to work with git-annex-shellDmitriy Zaporozhets2015-02-111-6/+38
|/
* Revert "Revert "Merge branch 'git_hook_messages'""Valery Sizov2014-11-241-1/+1
| | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
* Revert "Merge branch 'git_hook_messages'"Jacob Vosmaer2014-11-201-1/+1
| | | | | | | | | | At least the following things were broken: - missing require for 'gitlab_access_status' in lib/gitlab_net.rb - gitlabhq master internal API returns 'true' or 'false', gitlab-shell expects JSON This reverts commit 11311a95545f967a5736cd16ab5fc37f7e658519, reversing changes made to 45444597aef3e434571de2491934ae92357ad231.
* Show error message when git access is rejectedValery Sizov2014-11-141-1/+1
|
* Merge pull request #81 from corny/patch-1Dmitriy Zaporozhets2014-10-281-3/+1
|\ | | | | avoid @user_tried
| * Update gitlab_shell.rbJulian K.2013-08-071-3/+1
| | | | | | using instance_variable_defined to avoid @user_tried
* | Use a different style of one-line classesJacob Vosmaer2014-08-271-1/+1
| |
* | Handle invalid number of argumentsJacob Vosmaer2014-08-271-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 pathJob van der Voort2014-08-271-1/+1
| |
* | set LD_LIBRARY_PATH for Kernel::execLars Sjöström2014-03-261-1/+1
| |
* | Explain why GitlabShell#exec_cmd has no testsJacob Vosmaer2014-03-121-0/+1
| |
* | Fix typo in Kernel::exec optionsJacob Vosmaer2014-03-121-1/+1
| |
* | Restrict env variables passed to git-xxx-packJacob Vosmaer2014-03-071-2/+2
| |
* | Merge branch 'remove_open3' of /home/git/repositories/gitlab/gitlab-shellDmitriy Zaporozhets2013-11-211-1/+0
|\ \
| * | Remove unused open3 dependencyJacob Vosmaer2013-11-191-1/+0
| | |
* | | Fix relative path detection for ssh://host:port/repo.gitDmitriy Zaporozhets2013-11-201-1/+3
|/ / | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Escape repository pathDmitriy Zaporozhets2013-11-131-1/+9
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Version up to 1.7.2v1.7.2Dmitriy Zaporozhets2013-10-311-1/+1
| |
* | Execute command directly without using shellFrançois Bobot2013-09-161-8/+8
|/ | | | use Shellwords.shellwords for splitting origin_cmd instead of .split(' ')
* Merge pull request #56 from smashwilson/36-loggerDmitriy Zaporozhets2013-06-101-4/+32
|\ | | | | Logger
| * Show an 'access denied' message on stderr.ash2013-05-181-0/+1
| |
| * Allow administrators to log users by key id (faster) or by username (clearer).ash2013-05-181-8/+26
| |
| * Logging throughout gitlab-shell.ash2013-05-181-1/+10
| |
* | ok last change in this codeGitLab2013-05-281-2/+0
| |
* | fixed bad regexGitLab2013-05-281-1/+3
| |
* | propably better ssh key id finding in ARGVGitLab2013-05-281-1/+1
|/
* Merge pull request #16 from docwhat/execDmitriy Zaporozhets2013-03-251-1/+5
|\ | | | | Improve gitlab_shell spec and replace `system()` with `exec()`
| * Use Kernel::exec instead of system()Christian Höltje2013-03-151-1/+5
| | | | | | | | | | We don't need to keep the ruby process around once we've established that it's ok to run a git command.
* | Do not fall on discover deployment keys. Closes #25Akzhan2013-03-251-1/+1
|/
* Use update hook to add post event to redis. Use GL_ID instead of GL_USERDmitriy Zaporozhets2013-02-141-1/+1
|
* Include gitlab_config in gitlab_initDmitriy Zaporozhets2013-02-061-1/+0
|
* Update hook and support for protected branchesDmitriy Zaporozhets2013-02-061-3/+1
|
* gitlab netDmitriy Zaporozhets2013-02-051-10/+12
|
* More testsDmitriy Zaporozhets2013-02-051-1/+1
|
* validate access via apiDmitriy Zaporozhets2013-02-041-1/+14
|
* set GL_USERDmitriy Zaporozhets2013-02-041-0/+2
|