Patrick Bajao
6766a0a144
Download a folder from repository
...
Add `GetArchiveRequest` to git-archive params.
Modifies `Git::Repository#archive_metadata` to append `path`
to `ArchivePrefix` so it'll not hit the cache of repository archive
when it already exists.
2019-04-02 22:07:16 +08:00
Bob Van Landuyt
d36415b754
Allow multiple repositories per project
...
This changes the repository type from a binary `wiki?` to a type. So
we can have more than 2 repository types.
Now everywhere we called `.wiki?` and expected a boolean, we check
that type.
2019-03-26 13:21:03 +01:00
Nick Thomas
0ce7c29fb7
Update GitLab Workhorse to v8.0.0
2018-12-11 16:23:23 +00:00
Francisco Javier López
cf8b8ff99b
Add feature flag for workhorse content type calculation
2018-12-06 21:22:39 +00:00
gfyoung
c858f70d07
Enable frozen string for lib/gitlab/*.rb
2018-10-22 07:00:50 +00:00
Rubén Dávila
007b81b8e2
Add receive_max_input_size setting to Application settings
...
If user has configure the setting then it will be passed to gitlab-shell
and gitlab-workhorse
2018-09-07 12:27:35 -05:00
Jacob Vosmaer
723f74d49d
Remove last flags from Blob and Workhorse
2018-07-11 12:59:15 +02:00
Jacob Vosmaer (GitLab)
3082b7d1c2
Make blob and other RPC's mandatory
2018-07-09 10:02:02 +00:00
Jacob Vosmaer
b012abee8b
Make all Gitaly diff flags mandatory
2018-07-06 12:01:15 +02:00
Zeger-Jan van de Weg
94b209b32c
Move git archives downloading to Gitaly
2018-05-17 09:31:50 +02:00
Nick Thomas
672733aa66
Add an API endpoint to download git repository snapshots
2018-04-19 17:25:01 +01:00
Douwe Maan
44f4a674e2
Merge branch 'jramsay-38830-tarball' into 'master'
...
Add alternative archive route
Closes #38830
See merge request gitlab-org/gitlab-ce!17225
2018-04-06 14:14:39 +00:00
James Ramsay
07f517d441
Add new repository archive route
...
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.
- add `<project>/-/archive/<ref>/<filename>.<format>` route using the
`-` separator to prevent namespace collisions. If the filename is
`<project>-<ref>` or the ref is a sha, the sha will be omitted,
otherwise the default filename will be used.
- deprecate previous archive route `repository/<ref>/archive`
2018-04-06 08:45:17 -04:00
Kamil Trzciński
678620cce6
Add `direct_upload` setting for artifacts
2018-04-05 15:01:14 +02:00
James Ramsay
0b1b9c409d
Add option to suppress archive commit sha
...
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.
- add append_sha option (defaults true) to provide a method for
toggling this feature.
Support added to GitLab Workhorse by gitlab-org/gitlab-workhorse!232
2018-04-04 16:56:18 -04:00
Jacob Vosmaer (GitLab)
e5e4cd96cf
Gitlab-workhorse still needs RepoPath on Git HTTP
2018-03-29 08:35:33 +00:00
Jacob Vosmaer
23936ff20d
Make all workhorse gitaly calls opt-out, take 2
2018-03-28 14:13:06 +02:00
Sean McGivern
06afa5a3ff
Revert "Merge branch 'workhorse-gitaly-mandatory' into 'master'"
...
This reverts merge request !18002
2018-03-28 09:53:42 +00:00
Jacob Vosmaer (GitLab)
c43e18fc49
Remove some easy cases of 'path_to_repo' use
2018-03-28 09:21:32 +00:00
Kamil Trzciński
949d1b37e7
Merge branch 'ac/lfs-direct-upload-ee-to-ce' into 'master'
...
LFS direct upload port to CE
Closes #44548
See merge request gitlab-org/gitlab-ce!17752
2018-03-28 07:57:29 +00:00
Jacob Vosmaer (GitLab)
f432fb9a4f
Make all workhorse gitaly calls opt-out
2018-03-27 10:47:15 +00:00
Alessio Caiazza
04c5e637f8
Port LFS direct_upload from EE
2018-03-27 10:32:48 +02:00
Kim "BKC" Carlbäcker
d4bd245acb
naming things
2018-03-07 16:22:37 +01:00
Kim "BKC" Carlbäcker
3c0f6da546
Make git push mandatory
2018-03-06 15:17:00 +01:00
Kamil Trzciński
11f882ca43
Upgrade GitLab Workhorse to v3.6.0
2018-02-06 15:34:44 +01:00
Micaël Bergeron
2057a6acde
port of 594e6a0a625^..f74c90f68c6
2018-02-01 12:14:46 -05:00
Jacob Vosmaer (GitLab)
583cff8d61
Default to Gitaly for 'git push' HTTP/SSH, and make Gitaly mandatory for SSH pull
2018-01-22 16:51:47 +00:00
🙈 jacopo beschi 🙉
729f05f0e3
Adds Rubocop rule for line break around conditionals
2018-01-11 16:34:01 +00:00
Jacob Vosmaer
d805cd3606
Add option to disable git archive caching in workhorse
2018-01-09 16:59:46 +01:00
Zeger-Jan van de Weg
f5d3b92155
Remove Ci::Build#artifacts_file?
2017-12-03 12:04:49 +01:00
Kamil Trzcinski
871de0f185
Rename artifacts_* to legacy_artifacts_*
2017-12-03 12:04:49 +01:00
Jacopo
181cd299f9
Adds Rubocop rule for line break after guard clause
...
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-16 17:58:29 +01:00
Nick Thomas
527f87dfdb
Support show-all-refs for git over HTTP
2017-10-30 15:20:36 +00:00
Ahmad Sherif
618dd9e4b2
Migrate Workhorse Send{Diff,Patch} to Gitaly
2017-10-09 14:18:05 +02:00
Alejandro Rodríguez
fce708c154
Send extra Gitaly params for `send_git_archive` if needed
2017-10-02 12:39:42 -03:00
David Turner
01ce58bde4
add username to authorized result, so that gitlab-shell can pass it to hooks
2017-09-29 18:16:55 -04:00
Rémy Coutable
572e90125f
Backport the EE signature of Gitlab::Workhorse#send_artifacts_entry
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-08 14:04:44 +02:00
Grzegorz Bizon
52e52f4a17
Make it explicit that workhorse needs artifact path
2017-09-05 12:20:09 +02:00
Jacob Vosmaer (GitLab)
35acc4cbbe
Make Gitaly PostUploadPack mandatory
2017-09-01 08:45:19 +00:00
Jacob Vosmaer
4405c8e393
Remove deprecated field from workhorse API responses
2017-08-15 16:39:31 +02:00
Jacob Vosmaer
a78306e7fa
Enable gitaly_post_upload_pack by default
2017-07-25 15:23:41 +02:00
Ahmad Sherif
1300736850
Use a unique feature name for Workhorse send blob migration
2017-07-24 07:07:20 +02:00
Robert Speicher
9bfe49c2b1
Merge branch 'migrate-workhorse-send-blob-to-gitaly' into 'master'
...
Migrate Workhorse SendBlob to Gitaly
Closes gitaly#356
See merge request !12313
2017-07-12 16:57:57 +00:00
Ahmad Sherif
08ce213c41
Migrate Workhorse SendBlob to Gitaly
2017-07-11 16:55:00 +02:00
Paul Charlton
cb3b4a15e6
Support multiple Redis instances based on queue type
2017-07-11 03:35:47 +00:00
Jacob Vosmaer
78089d1153
Remove option to disable Gitaly completely
2017-07-07 12:48:34 +02:00
Jacob Vosmaer
4f8af50b61
Rubocop and comment fixes
2017-06-20 17:31:49 +02:00
Jacob Vosmaer
7bda1030a5
Send gitaly token to workhorse when needed
2017-06-20 16:19:43 +02:00
Rémy Coutable
4cfa5ce4a9
Enable the Style/PreferredHashMethods cop
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-02 19:11:26 +02:00
Alejandro Rodríguez
870a8bbbdd
Allow PostReceivePack to be enabled with Gitaly
2017-05-30 22:16:43 -04:00
Jacob Vosmaer
43f037c903
Don't reuse gRPC channels
...
It seems that bad things happen when two gRPC stubs share one gRPC
channel so let's stop doing that. The downside of this is that we
create more gRPC connections; one per stub.
2017-05-15 10:52:33 +02:00
Rémy Coutable
3db37e0562
Enable the Style/TrailingCommaInArguments cop
...
Use the EnforcedStyleForMultiline: no_comma option.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Rémy Coutable
d40e1f547e
Enable the Style/TrailingCommaInLiteral cop
...
Use the EnforcedStyleForMultiline: no_comma option.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Alejandro Rodríguez
8bc381db90
Pass GL_REPOSITORY in Workhorse responses
2017-05-05 10:52:06 -03:00
Jakub Jirutka
6cb65c8c34
Make location of gitlab_workhorse_secret configurable
...
Hard-coding location of configuration files is very bad practice. This
patch applies the same approach as currently used for
gitlab_shell_secret file.
2017-04-19 20:04:31 +02:00
Jacob Vosmaer
e4ac948c70
Send more Gitaly::Repository fields
2017-04-07 12:53:30 +02:00
Jacob Vosmaer
5077079faa
Remove deprecated field from workhorse response
2017-04-05 16:29:56 +02:00
Sean McGivern
20e3ed6093
Merge branch 'workhorse-gitaly-address' into 'master'
...
Pass GitalyAddress to workhorse
See merge request !10447
2017-04-04 15:48:24 +00:00
Jacob Vosmaer
ca94d20013
Pass GitalyAddress to workhorse
2017-04-04 15:41:50 +02:00
Ahmad Sherif
d56e422257
Disable support for Gitaly PostReceivePack
...
See https://gitlab.com/gitlab-org/gitaly/issues/172
2017-04-04 13:31:33 +02:00
Ahmad Sherif
39753bfb9c
Add feature flags for enabling (Upload|Receive)Pack for Gitaly
...
Closes gitaly#168
2017-04-03 18:44:57 +02:00
Jacob Vosmaer
13487809c7
Pass Gitaly Repository messages to workhorse
2017-04-03 13:58:29 +02:00
Jacob Vosmaer
1904c80f3d
Change socket_path to gitaly_address
2017-03-29 14:48:05 +02:00
Kamil Trzcinski
2d652fcf5a
Update notification code
2017-03-06 11:44:45 +01:00
Kamil Trzcinski
3f5191de6d
Add specs for notifications
2017-03-03 13:51:49 +01:00
Kamil Trzcinski
2b27a98db3
Add support for Workhorse notifications
2017-03-03 12:57:47 +01:00
Douwe Maan
b7d8df503c
Enable Style/MutableConstant
2017-02-23 09:31:56 -06:00
Adam Niedzielski
5d3816652e
Introduce maximum session time for terminal websocket connection
...
Store the value in application settings.
Expose the value to Workhorse.
2017-02-06 11:49:30 +01:00
Ahmad Sherif
0a1c8bb37c
Pass Gitaly resource path to gitlab-workhorse if Gitaly is enabled
2017-01-18 19:43:17 +02:00
Nick Thomas
c3d972f4e8
Add terminals to the Kubernetes deployment service
2016-12-19 19:53:04 +00:00
Jacob Vosmaer
6731ab5d76
Add Gitlab::Middleware::Multipart
2016-12-15 12:26:36 +01:00
Jacob Vosmaer
05745737c6
Explain the extra chmod
2016-09-26 14:21:39 +02:00
Nick Thomas
a8829f25d3
Use base SHA for patches and diffs
...
This commit changes the revisions used for diffs. The current behaviour is
to show all changes between current tip of master and tip of the MR, rather
than matching the output of the web frontend (which just shows the changes
in the MR). Switching from start_sha to base_sha fixes this.
2016-09-22 18:49:31 +01:00
Jacob Vosmaer
11f54caada
Allow trailing newline in secret base64 data
2016-09-13 19:45:02 +02:00
Jacob Vosmaer
c87540ed46
Verify JWT messages from gitlab-workhorse
2016-09-05 15:05:31 +02:00
Katarzyna Kobierska
ab419b08ce
If version file is unavailable unknown status
2016-07-23 06:56:32 +02:00
Katarzyna Kobierska
10d9df28ec
Add gitlab-workhorse version to admin dashboard
...
Test for showing GitLab Workhorse version on Admin Dashboard
Refactoring
2016-07-23 06:56:32 +02:00
Douwe Maan
284ed39e30
Merge branch 'send-entry-via-Gitlab-Workhorse-Send-Data' into 'master'
...
Use Gitlab-Workhorse-Send-Data to send entry
## What does this MR do?
Use Gitlab-Workhorse-Send-Data to send entry:
Closes #19224 , Closes #19128
Also requires this MR to work:
https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/53
## Are there points in the code the reviewer needs to double check?
Do we have a test for this?
## Why was this MR needed?
This way gitlab-workhorse does not have to call any API.
See merge request !5094
2016-07-11 16:18:37 +00:00
Douwe Maan
ddec2ed0df
Add send_git_patch helper
2016-07-06 18:51:01 -04:00
Douwe Maan
a9fa45f09e
Represent DiffRefs as proper class instead of tuple array
2016-07-06 18:50:58 -04:00
Lin Jen-Shin
28e324ae67
Use Gitlab-Workhorse-Send-Data to send entry:
...
Closes #19224 , Closes #19128
Also requires this MR to work:
https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/53
2016-07-05 22:58:38 +08:00
Z.J. van de Weg
db0a6c10ed
Bump workhorse version
2016-06-28 22:10:53 +02:00
Z.J. van de Weg
c31f876a27
Workhorse to serve email diffs
...
Depends on the changes in Workhorse (gitlab-org/gitlab-workhorse!48 ).
2016-06-28 14:26:38 +02:00
Jacob Vosmaer
c32e61251e
Get rid of Gitlab::ShellEnv
2016-06-15 14:59:37 +02:00
Douwe Maan
16bd4e5668
Merge branch 'master' into workhorse-helpers
2016-06-10 12:28:04 +02:00
Douwe Maan
a9857f8c2f
Add send_git_diff helper
2016-06-08 14:30:15 +02:00
Jacob Vosmaer
bebe110dff
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into git-http-controller
...
Conflicts:
lib/gitlab/workhorse.rb
2016-06-08 10:31:33 +02:00
Douwe Maan
8c3ba8d6c9
Add workhorse controller and API helpers
2016-06-06 13:16:30 +02:00
Zeger-Jan van de Weg
01e1139f68
Workhorse to serve raw diffs
2016-06-03 18:43:22 +02:00
Jacob Vosmaer
9ce0994299
Rubocop and whitespace
2016-05-02 13:21:59 +02:00
Jacob Vosmaer
91226c2001
Move workhorse protocol code into lib
2016-04-06 17:52:12 +02:00
Jacob Vosmaer
34a6f83d3e
Fix API
2016-02-11 18:10:14 +01:00
Jacob Vosmaer
771f14b96e
First version of "git archive" headers
2016-02-02 14:09:55 +01:00
Jacob Vosmaer
b1f22aa35a
Gotta have newlines
2016-02-01 12:27:35 +01:00
Jacob Vosmaer
02afa6793c
Use only one header to send git blobs
2016-02-01 11:33:22 +01:00