summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Write GitlabShell error to stderr.nice-error-messageDouwe Maan2015-04-061-18/+30
|
* Write GitlabAccess error to stderr.Douwe Maan2015-04-061-11/+10
|
* Prevent character encoding issues by sending received changes as raw data.Douwe Maan2015-03-151-1/+5
|
* Fix post-receive broadcast messageDmitriy Zaporozhets2015-03-041-1/+1
|
* Enable rubocop ruleDmitriy Zaporozhets2015-03-022-3/+3
|
* Correct spelling: Symlinking is short for symbolic linkingPetrik de Heus2015-02-271-1/+1
|
* Add tests.Douwe Maan2015-02-231-2/+2
|
* Return true from GitlabPostReceive to ensure custom hooks run.Douwe Maan2015-02-231-1/+3
|
* 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
|
* Improve broadcast message logicv2.5.1Dmitriy Zaporozhets2015-02-182-8/+6
| | | | | Expect broadcast message API endpoint to return 200 with empty JSON if no broadcast messages available
* 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-163-10/+10
|
* Disable git-annex by defaultDmitriy Zaporozhets2015-02-161-1/+1
|
* Add config option to disable git-annexDmitriy Zaporozhets2015-02-162-4/+8
|
* Enable git-annex on first commandDmitriy Zaporozhets2015-02-132-14/+14
|
* Improve logging for git-annexDmitriy Zaporozhets2015-02-121-1/+4
|
* Merge branch 'master' into git-annexDmitriy Zaporozhets2015-02-124-65/+79
|\ | | | | | | | | Conflicts: lib/gitlab_shell.rb
| * Log full Net::HTTP error.Douwe Maan2015-02-122-2/+2
| |
| * Show nice error message when internal API is unreachable.Douwe Maan2015-02-114-23/+39
| |
| * Refactor: Remove #tap for readability and performance and DRY up get/post.Douwe Maan2015-02-111-40/+40
| |
* | Enable git-annex validate accessGitLab2015-02-122-6/+10
| |
* | Patch gitlab-shell to work with git-annex-shellDmitriy Zaporozhets2015-02-111-6/+38
|/
* Print broadcast message if one is available.Douwe Maan2015-02-092-0/+50
|
* Fix gitlab-shell access for any kind of branchv2.4.2Dmitriy Zaporozhets2015-01-281-1/+2
|
* Join changes in GitlabNet libraryDmitriy Zaporozhets2015-01-281-1/+1
|
* Return true if no action was needed during create_hooks. Log to logger ↵Marin Jankovski2015-01-161-1/+6
| | | | actions taken.
* Merge branch 'master' of github.com:gitlabhq/gitlab-shellv2.4.1Dmitriy Zaporozhets2015-01-131-1/+1
|\
| * double quotes to single quotesChristian González2015-01-021-1/+1
| |
| * typo in message: "accesible" -> "accessible"Christian González2015-01-011-1/+1
| |
* | masking access_token from url for loggingValery Sizov2015-01-131-0/+1
|/
* Merge pull request #197 from dblessing/fix/custom_hook_outputJacob Vosmaer2014-11-261-3/+3
|\ | | | | Fix custom hook output
| * Fix custom hook output and return valuesDrew Blessing2014-11-181-3/+3
| |
* | Add missing 'require_relative' in gitlab_net.rbJacob Vosmaer2014-11-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this 'require' statement, you get the following error: ``` $ git ls-remote origin /home/git/gitlab-shell/lib/gitlab_net.rb:30:in `check_access': uninitialized constant GitlabNet::GitAccessStatus (NameError) from /home/git/gitlab-shell/lib/gitlab_shell.rb:63:in `validate_access' from /home/git/gitlab-shell/lib/gitlab_shell.rb:24:in `exec' from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>' fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ```
* | Revert "Revert "Merge branch 'git_hook_messages'""Valery Sizov2014-11-244-7/+33
| | | | | | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
* | Revert "Merge branch 'git_hook_messages'"Jacob Vosmaer2014-11-204-33/+7
| | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'git_hook_messages'Dmitriy Zaporozhets2014-11-194-7/+33
|\ \ | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: VERSION
| * | Show error message when git access is rejectedValery Sizov2014-11-144-7/+33
| |/
* | Merge pull request #193 from cirosantilli/tag-branch-rm-double-dashDmitriy Zaporozhets2014-11-181-2/+2
|\ \ | |/ |/| Delete tags and branches that start with hyphen
| * Delete tags and branches that start with hyphenCiro Santilli2014-10-311-2/+2
| |
* | Fix the calls to pre- and post-receive custom hooksjkbzh2014-11-061-14/+41
| | | | | | | | | | | | - Reset G_ID if the custom pre-receive hook fails - Use a pipe to feed stdin to the custom pre- and post-receive hooks, in the same way that the standalone git works
* | Support for custom hooksDrew Blessing2014-11-053-3/+48
|/
* using true instead of 1jose2014-10-301-1/+1
|
* The gitlab pre-receive hook expects the call to exec to return 1jose2014-10-301-1/+1
| | | | | | | | | when a user has access. Doing an exit 0 effectively ended the thread. No code would be executed after the call to exec. This changes fixes the problem for the pre-receive hooks but you want to check that GitlabAccess.exec is not used elsewhere. A quick grep of the code seems to indicate this is not the case
* 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
* | Merge pull request #177 from feedhenry/keys_listDmitriy Zaporozhets2014-10-281-0/+14
|\ \ | | | | | | Added list-keys command, with associated spec
| * | Added list-keys command and specDavid Martin2014-10-151-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed puts and tidied up regex Address the hound Address the hound, again Use single quotes Add back travis.yml file Remove travis.yml, only keep on fh-master Use single quotes Use single quotes