| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Put Redis loading code in one place
Before this change you could not run the gitlab_net specs in isolation.
See merge request !64
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify the GitAccessStatus class
Make the optional 'message' argument required. Remove unused 'to_json'
method.
See merge request !65
|
| |/
| |
| |
| |
| | |
Make the optional 'message' argument required. Remove unused 'to_json'
method.
|
|/ |
|
| |
|
|
|
|
| |
`make update-redis` will clone the library and adjust the paths properly
|
|
|
|
| |
Closes gitlab-org/gitlab-ce#17329
|
|
|
|
| |
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|
|
|
|
|
| |
This reverts commit f5e87590d463b4b3d1bf5cd6b49a9d0d60acd552.
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 1ca8a44f0baa1728650308fe992f42660170ae16.
Never pruning loose objects at all is not really a solution for
anything, and it causes annoying `git gc --auto` warnings.
|
|
|
|
|
|
| |
The output of the `git ls-remote` command is written to the STDOUT so
the client can read and parse the list of tags. If there is an error it's
also written to STDOUT.
|
|
|
|
|
|
| |
When fetching remote repo with tags the new remote tags are mixed in
with the local tags (all tags are saved under refs/tags), this affects
the UI of the Project given that we're showing up tags of a remote repo.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This provides the integration point to the internal API to get the
ssh key from the internal API.
|
| |
|
| |
|
|
|
|
|
| |
This is a workaround to reduce the impact of
https://gitlab.com/gitlab-org/gitlab-ce/issues/13524 .
|
| |
|
|
|
|
|
|
| |
The optional parameter will decide wheter to fetch using --force or not.
fetching with --force is a requirement for Gitlab Geo secondary node
replication.
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
lib/gitlab_projects.rb
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove trailing slashes from gitlab_url
They do not play nice with gitlab-workhorse (or rather Golang net/http
DefaultServemux).
See merge request !35
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
They do not play nice with gitlab-workhorse (or rather Golang net/http
DefaultServemux).
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Stricter exec cmd
In response to the gitlab-shell 2.6.6-2.6.7 remote code execution
vulnerability.
See merge request !33
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Hoping this makes it more obvious when code touches the very
unsafe contents of this variable.
|
| |/ /
| | |
| | |
| | | |
Passing strings to Kernel::exec leads to remote code execution.
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Pass $HOME to git as well
[ this patch has the same rationale and reasoning as
https://gitlab.com/gitlab-org/gitlab-workhorse/commit/0d0bd209
details follow ]
Git has 3 places for configs:
- system
- global (per user), and
- local (per repository)
System config location is hardcoded at git compile time (to usually
$prefix/etc/gitconfig). Local configuration is usually picked because we
pass full repo path to subcommand. But global configuration is currently not
picked at all, because HOME env variable is not passed to git.
Pass $HOME through and let git see it's "global" config.
Currently GitLab omnibus stores gitlab user name/email + "autocrlf =
true" in global config, so missing it should not be a blocker for
receive/send-pack operations. But having it is more correct and can be
handy in the future if/when more git operations are done from-under
gitlab-shell.
Having $HOME properly set is also needed when one cannot change system
git config and have to put site-wide configuration into global git
config under $HOME.
That was the case I've hit and the reason for this patch.
/cc @dzaporozhets, @jacobvosmaer
See merge request !32
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
[ this patch has the same rationale and reasoning as
https://gitlab.com/gitlab-org/gitlab-workhorse/commit/0d0bd209
details follow ]
Git has 3 places for configs:
- system
- global (per user), and
- local (per repository)
System config location is hardcoded at git compile time (to usually
$prefix/etc/gitconfig). Local configuration is usually picked because we
pass full repo path to subcommand. But global configuration is currently not
picked at all, because HOME env variable is not passed to git.
Pass $HOME through and let git see it's "global" config.
Currently GitLab omnibus stores gitlab user name/email + "autocrlf =
true" in global config, so missing it should not be a blocker for
receive/send-pack operations. But having it is more correct and can be
handy in the future if/when more git operations are done from-under
gitlab-shell.
Having $HOME properly set is also needed when one cannot change system
git config and have to put site-wide configuration into global git
config under $HOME.
That was the case I've hit and the reason for this patch.
|
|/ /
| |
| |
| |
| |
| | |
This reverts commit 8449979ff029af51be0c675c5b6262bc4adc8b3d.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Add fetch-remote command for repo mirroring
Also exits `import-repository` with non-zero status when import fails.
See merge request !29
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| | |
This reverts commit ae498b6cd4122d3d7f35e6b73b50c53615ca3488, reversing
changes made to 79fdf65c71e90773fbf52d6832b74cf5a7124755.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add support to connect gitlab-shell to Unicorn via UNIX socket (v2)
Hello up there.
I'm doing SlapOS port of GitLab, and that means several different services could be running on the same machine, including several GitLabs.
So far all internal GitLab subservices could be glued together via UNIX sockets except gitlab-shell -> Unicorn link, which, when done via local TCP, requires firewall/network namespaces to protect services on one machine from each other.
On the other hand access to UNIX domain sockets is managed via regular UNIX permissions on filesystem, and thus is easier to manage. Besides UNIX domain sockets are well known to be faster compared to TCP over loopback - in particular to have ~ 2 times less latency and ~ 2 times more throughput.
From this point of view it makes sense to teach gitlab-shell to talk to Unicorn via UNIX socket and switch to that mode by default eventually.
I've just made a patch for this. Please apply.
Thanks beforehand,
Kirill
/cc @dzaporozhets, @jacobvosmaer, @rspeicher
See merge request !30
|