| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
|/ |
|
|\
| |
| | |
Fix custom hook output
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
```
|
| |
| |
| |
| | |
This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Conflicts:
VERSION
|
| |/ |
|
|\ \
| |/
|/| |
Delete tags and branches that start with hyphen
|
| | |
|
| |
| |
| |
| |
| |
| | |
- 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
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
avoid @user_tried
|
| |
| |
| | |
using instance_variable_defined to avoid @user_tried
|
|\ \
| | |
| | | |
Added list-keys command, with associated spec
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | | |
Added list-projects command & spec
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
list-projects command usage
Single quotes
Use single quotes
Use single quotes
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Conflicts:
.gitignore
|
| | | |
|
|/ / |
|
| |
| |
| |
| | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| | |
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| | |
|
|\ \
| | |
| | | |
Replace build in home folder with environment
|
| | |
| | |
| | |
| | |
| | | |
You can't ever assume that user's home is /home/$USERNAME or /home/git
Preferable is to assume that user running gitlab-shell has repositories in his home (get from the environment).
|
|\ \ \
| | | |
| | | | |
Security issue: imported URLs are stored along with password.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
added support for redis password
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Gitlab Access handles security check. GitlabPostReceive creates a sidekiq job
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
GitlabUpdate: use stripped path for repo_name
|
| | | | | |
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This avoids getting the following error on some platforms:
NameError: uninitialized constant GitlabKeys::Timeout
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|