GitLab Bot
25db9c1230
Add latest changes from gitlab-org/gitlab@master
2021-05-06 12:10:38 +00:00
GitLab Bot
1769b59b9f
Add latest changes from gitlab-org/gitlab@master
2021-04-01 18:13:56 +00:00
GitLab Bot
cb840235d7
Add latest changes from gitlab-org/gitlab@master
2021-03-17 15:09:03 +00:00
GitLab Bot
89f3fa0b96
Add latest changes from gitlab-org/gitlab@master
2021-02-04 00:09:18 +00:00
GitLab Bot
8106ac487c
Add latest changes from gitlab-org/gitlab@master
2021-01-14 15:10:46 +00:00
GitLab Bot
2c2b5aeac0
Add latest changes from gitlab-org/gitlab@master
2021-01-05 15:10:02 +00:00
GitLab Bot
9b09561f47
Add latest changes from gitlab-org/gitlab@master
2020-12-09 18:09:48 +00:00
GitLab Bot
a2f16969fa
Add latest changes from gitlab-org/gitlab@master
2020-12-04 06:09:34 +00:00
GitLab Bot
3775eba7c1
Add latest changes from gitlab-org/gitlab@master
2020-10-16 12:09:33 +00:00
GitLab Bot
c083f926c5
Add latest changes from gitlab-org/gitlab@master
2020-10-15 21:09:12 +00:00
GitLab Bot
e0b023e388
Add latest changes from gitlab-org/gitlab@master
2020-09-23 15:10:14 +00:00
GitLab Bot
bdca097916
Add latest changes from gitlab-org/gitlab@master
2020-08-11 03:11:00 +00:00
GitLab Bot
1e254d9f5a
Add latest changes from gitlab-org/gitlab@master
2020-06-30 12:08:57 +00:00
GitLab Bot
c59765a50a
Add latest changes from gitlab-org/gitlab@master
2020-06-24 18:09:03 +00:00
GitLab Bot
95ad46159e
Add latest changes from gitlab-org/gitlab@master
2020-03-30 21:08:01 +00:00
GitLab Bot
154b9bae14
Add latest changes from gitlab-org/gitlab@master
2020-03-17 21:09:16 +00:00
GitLab Bot
c36152ff8c
Add latest changes from gitlab-org/gitlab@master
2020-03-13 15:09:21 +00:00
GitLab Bot
3cd08f4bf9
Add latest changes from gitlab-org/gitlab@master
2020-03-13 00:09:34 +00:00
GitLab Bot
dc889678d1
Add latest changes from gitlab-org/gitlab@master
2020-03-12 15:09:39 +00:00
GitLab Bot
0d6fa03312
Add latest changes from gitlab-org/gitlab@master
2020-02-06 18:08:54 +00:00
GitLab Bot
c8f773a859
Add latest changes from gitlab-org/gitlab@master
2020-01-30 21:08:47 +00:00
GitLab Bot
784fae4b9d
Add latest changes from gitlab-org/gitlab@master
2019-12-12 12:07:33 +00:00
GitLab Bot
a048261403
Add latest changes from gitlab-org/gitlab@master
2019-11-21 09:06:16 +00:00
GitLab Bot
25989ab7ef
Add latest changes from gitlab-org/gitlab@master
2019-10-18 11:11:44 +00:00
GitLab Bot
7b8ec6e718
Add latest changes from gitlab-org/gitlab@master
2019-10-15 18:06:01 +00:00
GitLab Bot
4f4dcd3c5d
Add latest changes from gitlab-org/gitlab@master
2019-10-02 15:06:12 +00:00
GitLab Bot
80f61b4035
Add latest changes from gitlab-org/gitlab@master
2019-09-18 14:02:45 +00:00
GitLab Bot
bd860c22f6
Add latest changes from gitlab-org/gitlab@master
2019-09-17 12:06:48 +00:00
Stan Hu
291df05e43
Add Rugged calls to performance bar
...
This will help diagnose the source of excessive I/O from Rugged
calls. To implement this, we need to obtain the full list of arguments
sent to each request method.
2019-07-23 21:38:05 -07:00
Igor
0f46886880
Added submodule links to Submodule type in GraphQL API
...
This is part of migration of Folder View to Vue
2019-07-17 13:06:19 +00:00
Shinya Maeda
48307fac1e
Extend MergeToRefService for creating merge ref from the other ref
...
Currently, MergeToRefService is specifically designed for
createing merge commits from source branch and target branch of
merge reqeusts. We extend this behavior to source branch and any
target ref paths.
2019-07-05 17:15:10 +07:00
GitalyBot
e7b54b9cb8
Fix broken worktree test
...
The setup was wrong, and due to Gitaly being a bit more strict it had to
match up. The test is now accurate and passing again.
2019-06-25 14:45:51 +00:00
Patrick Bajao
40fd0b9e40
Add client code to call GetObjectDirectorySize RPC
...
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13460
2019-06-05 20:58:46 +08:00
Zeger-Jan van de Weg
951afba624
Remove hook directory requirement from Shell
...
It used to be the case that GitLab created symlinks for each repository
to one copy of the Git hooks, so these ran when required. This changed
to set the hooks dynamically on Gitaly when invoking Git.
The side effect is that we didn't need all these symlinks anymore, which
Gitaly doesn't create anymore either. Now that means that the tests in
GitLab-Rails should test for it either.
Related: https://gitlab.com/gitlab-org/gitaly/issues/1392#note_175619926
2019-05-30 20:04:08 +02:00
John Cai
0e033b3124
Add client methods for DisconnectGitAlternates rpc
...
DisconnectGitAlternates is a Gitaly RPC that will delete a repository's
objects/info/alternates file. This commit adds client support for that
RPC.
2019-05-03 15:59:28 -07:00
John Cai
5ee7876534
Add client methods for FetchIntoObjectPool RPC
...
Gitaly's FetchIntoObjectPool RPC will idempotently fetch objects into an
object pool. If the pool doesn't exist, it will create an empty pool
before attempting the fetch. This change adds client code as well as
specs to cover this behavior.
2019-04-30 08:28:56 -07:00
Bob Van Landuyt
33cf8edae1
Port changes for design management to CE
...
This ports the changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10462/
to CE
2019-04-29 08:28:43 +02:00
Oswaldo Ferreira
976d373ac1
Make use of local ref if it is reachable
2019-04-19 16:01:49 -03:00
Stan Hu
5d74c95c98
Check that source and target branch exist
...
This ensures the return value is consistent if the source and/or
branch do not exist.
2019-04-18 22:01:51 -03:00
Stan Hu
54d64ec9f6
Remove source_branch_name commit check
...
This should already be done in Gitlab::Git:Compare.
2019-04-18 22:01:51 -03:00
Stan Hu
26653eb035
Don't create a temp reference for branch comparisons within project
...
A temp reference is only needed to fetch a branch from another project,
as in the case for forked repositories. For branch comparisons within
the same project, we can just use the existing branch names to do the
comparison.
Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/38689#note_126107862
2019-04-18 22:01:51 -03:00
Nick Thomas
2845e8d973
Revert "Revert "Merge branch '24704-download-repository-path' into 'master'""
...
This reverts commit 171818df0a
.
2019-04-16 15:16:23 +01:00
Rémy Coutable
51119395e6
Merge branch 'revert-24704-download-repository-path' into 'master'
...
Revert "Merge branch '24704-download-repository-path' into 'master'"
See merge request gitlab-org/gitlab-ce!27249
2019-04-11 10:01:52 +00:00
Patrick Bajao
171818df0a
Revert "Merge branch '24704-download-repository-path' into 'master'"
...
This reverts commit 6c75bd015c
, reversing
changes made to 1be7f5aaa3
.
2019-04-11 15:49:53 +08:00
John Cai
674b926ef4
Guard against nil dereferenced_target
2019-04-10 11:39:36 -07:00
Thong Kuah
4ec16912b8
Autocorrect with RSpec/ExampleWording cop
...
- rewords examples starting with 'should'
- rewords examples starting with 'it'
Note: I had to manually fixup "onlies" to "only"
2019-04-05 08:43:27 +00:00
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
Stan Hu
30caec327f
Bump Rugged to 0.28.0
...
This version bump makes things consistent between Gitaly and
fixes a significant number of bugs:
https://github.com/libgit2/libgit2/releases
This also decreases disk space of Omnibus builds by ~30 MB.
There is also a workaround for
https://github.com/libgit2/rugged/issues/785 . If Gitaly or another
process changes .gitconfig while Rugged has the file loaded,
Rugged::Repository#each_key will report stale values unless a lookup is
done first.
This bug only manifests in a spec because we are using both Gitaly and
Rugged at the same time there, and we normally don't use Rugged in the
CE/EE code in this way.
2019-03-19 00:16:00 -07:00
John Cai
87adc799eb
Removing old code path for search_files_by_content
...
In 11.8, we added a fix for the SearchFilesByContent RPC in gitaly to
send back the response in chunks. However, we kept in the old code path
for backwards compatibility. Now that the change is fully deployed, we
can remove that old codepath.
2019-03-01 15:25:30 -08:00
Jacob Vosmaer
078f11a6b9
Prepare test suite for switch to Gitaly-embedded Git hooks
2019-02-27 10:58:21 +00:00
Oswaldo Ferreira
1ad699677f
Support merge to ref for merge-commit and squash
...
Adds the ground work for writing into
the merge ref refs/merge-requests/:iid/merge the
merge result between source and target branches of
a MR, without further side-effects such as
mailing, MR updates and target branch changes.
2019-02-25 10:40:58 -03:00
Lin Jen-Shin
b502d90a9f
Adapt that diverging commits could be just one bar
...
refactors the ui for diverging commits so that it's only a single
bar instead of two separate bars
2019-02-11 10:44:06 -08:00
John Cai
1f2f38f59a
Add client support for count diverging commits
...
Adds the client call for the gitaly rpc CountDivergingCommits
fixing signature
simplifying commit logic
adding test for max-count
refactoring tests
2019-02-06 22:25:37 -08:00
John Cai
04b9de85a8
Modifying gitaly search files client to add chunking support
...
updates gitaly proto to 1.7.0, modifies the search files gitaly client
call to use the new chunked_response flag in the rpc request, and stitch
the responses together.
maintains backwards compatibility with older gitaly servers.
2019-02-06 20:32:53 -08:00
Stan Hu
82b6e5378a
Send project name with Gitaly repository requests
...
When hashed storage is in use, it's helpful to have the project
name associated with the request.
Closes https://gitlab.com/gitlab-org/gitaly/issues/1394
2019-02-05 21:33:09 -08:00
Nick Thomas
067dc6540c
Validate bundle files before unpacking them
2019-01-10 21:33:36 +00:00
Bob Van Landuyt
67f2faa72d
Don't specify `shell` for Gitaly write-ref
...
Use shelling out to git to write refs instead of rugged, hoping to
avoid creating invalid refs.
To update HEAD we switched to using `git symbolic-ref`.
2018-11-26 16:44:26 +01:00
Oswaldo Ferreira
039df0267e
Avoid Gitaly RPC errors when fetching diff stats
2018-11-14 17:33:30 -02:00
Nick Thomas
668e5d63fa
Stop Repository#fetch_remote from using Gitlab::Shell
...
This indirection doesn't provide any value, so remove it
2018-11-06 12:42:00 +00:00
Mark Chao
6f03784857
Add spec for Gitlab::Git::Repository#attributes
...
seed_helper changed because testing requires attributes file in repo,
but repo was not a real git repo but instead faked.
2018-10-30 15:44:55 +08:00
Alejandro Rodríguez
a99bf447a2
Remove Gitlab::Git::Repository#rugged and Gollum code
...
Cleanup code, and refactor tests that still use Rugged. After this, there should
be no Rugged code that access the instance's repositories on non-test
environments. There is still some rugged code for other tasks like the
repository import task, but since it doesn't access any repository storage path
it can stay.
2018-10-02 16:34:28 -03:00
Oswaldo Ferreira
5dce096cf8
Use standalone diff stats RPC on every comparison view
2018-09-19 12:26:28 +00:00
Douwe Maan
bff85a4b1c
Merge branch 'osw-gitaly-diff-stats-client' into 'master'
...
Add Gitaly diff stats RPC client
See merge request gitlab-org/gitlab-ce!21732
2018-09-17 16:29:42 +00:00
Oswaldo Ferreira
c9d6c02f15
Add Gitaly diff stats RPC client
...
This adds a basic interface to fetch diff statistics given two SHAs.
It's a requirement for #49399 #20282 and #19232 .
2018-09-17 12:27:01 -03:00
Douglas Barbosa Alexandre
5d8e41fd35
Update Gitlay server version to 0.121.0
2018-09-13 15:36:14 -03:00
Alejandro Rodríguez
d3c5b07962
Remove Rugged and shell code from Gitlab::Git
2018-09-12 12:32:32 -03:00
Douglas Barbosa Alexandre
42c061781a
Encode remote root ref
2018-09-07 08:45:37 -03:00
Douglas Barbosa Alexandre
460badd8cc
Add Gitlab::Git::Repository#find_remote_root_ref
2018-09-06 16:01:48 -03:00
Michael Kozono
51dc249f44
Fix typo
2018-08-18 00:18:58 -07:00
Alejandro Rodríguez
01de2b5df8
Refactor gitlab:import:repos task to remove direct disk access
2018-07-31 16:28:44 -04:00
Alejandro Rodríguez
fa1ea656f7
Migrate add_remote, remove_remote, fetch_internal_remote to gitaly
2018-07-19 15:07:37 -04:00
Alejandro Rodríguez
68b1e5a97c
Incorporate Gitaly's RefService.FindAllRemoteBranches RPC
2018-07-18 16:48:47 -04:00
Jacob Vosmaer (GitLab)
5c651daa97
Remove unreachable Git code
2018-07-18 11:12:57 +00:00
Jacob Vosmaer (GitLab)
37eca76583
Remove Repository#lookup and unreachable rugged code
2018-07-16 10:34:31 +00:00
Jacob Vosmaer
40ed88b784
whitespace
2018-07-12 15:35:24 +02:00
Jacob Vosmaer
d1d7144b96
Make more ref RPC's mandatory
2018-07-12 15:12:00 +02:00
Jacob Vosmaer (GitLab)
62ffad0802
Remove Repository#path memoization
2018-07-12 09:49:25 +00:00
Jacob Vosmaer
a4e75e7a83
Use Gitaly for fetches and creating bundles
2018-07-09 12:50:17 +02:00
Jacob Vosmaer
ff112ce641
Add Repository#set_config and #delete_config
2018-07-06 12:06:54 +02:00
Jacob Vosmaer
201802f723
Remove more feature flags
2018-07-03 17:39:08 +02:00
Jacob Vosmaer (GitLab)
15aadc665f
Make OperationService RPC's mandatory
2018-07-03 09:12:03 +00:00
Zeger-Jan van de Weg
f369da063f
Commits between in Gitaly only
...
Prior to this change, most the commits counted were done through Gitaly.
This removes the last point where this wasn't the case.
This makes the `rugged_count_commits` method obsolete, with its tests.
Closes https://gitlab.com/gitlab-org/gitaly/issues/315
2018-06-28 12:09:20 +02:00
Douwe Maan
77fe416681
Merge branch 'zj-create-from-bundle-mandatory' into 'master'
...
Moves CreateFromBundle RPC to mandatory
Closes gitaly#944
See merge request gitlab-org/gitlab-ce!20144
2018-06-25 15:29:57 +00:00
Zeger-Jan van de Weg
29b4d657be
Moves another RPC to mandatory
...
This specific one isn't used on most machines, therefor low risk.
Closes https://gitlab.com/gitlab-org/gitaly/issues/944
2018-06-25 15:55:22 +02:00
Zeger-Jan van de Weg
0855478726
Write Config is mandatory
...
Closes https://gitlab.com/gitlab-org/gitaly/issues/879
2018-06-25 15:08:20 +02:00
Zeger-Jan van de Weg
2ac672280b
Raw changes calculation is Gitaly only now
...
Closes https://gitlab.com/gitlab-org/gitaly/issues/1138
2018-06-21 10:12:51 +02:00
Douwe Maan
b0fadeee83
Merge branch 'zj-counting-commits' into 'master'
...
Counting commits is done by Gitaly
Closes gitaly#382
See merge request gitlab-org/gitlab-ce!19983
2018-06-19 12:45:49 +00:00
Douwe Maan
f70c581d1f
Merge branch 'zj-linguist-gitaly-mandatory' into 'master'
...
Move language detection to mandatory
Closes gitaly#732 and gitaly#360
See merge request gitlab-org/gitlab-ce!19985
2018-06-19 09:56:45 +00:00
Zeger-Jan van de Weg
c24e39ab88
Counting commits is done by Gitaly
...
Closes https://gitlab.com/gitlab-org/gitaly/issues/382
2018-06-19 10:37:51 +02:00
Zeger-Jan van de Weg
da8419a1ba
License detection happens soley through Gitaly now
...
Migration: https://gitlab.com/gitlab-org/gitaly/issues/1026
Conflicts:
lib/gitlab/git/repository.rb
2018-06-19 09:35:15 +02:00
Zeger-Jan van de Weg
9ae8b57467
Move language detection to mandatory
...
Closes https://gitlab.com/gitlab-org/gitaly/issues/732
Closes https://gitlab.com/gitlab-org/gitaly/issues/360
2018-06-19 09:29:54 +02:00
Zeger-Jan van de Weg
3ed4a1b3aa
HasLocalBranches check is done by Gitaly only
...
Closes https://gitlab.com/gitlab-org/gitaly/issues/217
2018-06-14 10:31:24 +02:00
Zeger-Jan van de Weg
89ab32c6b2
Branches are fully migrated to Gitaly
...
Closes: https://gitlab.com/gitlab-org/gitaly/issues/389
2018-06-14 10:25:28 +02:00
Zeger-Jan van de Weg
4fc4600747
Default branch detection happens through Gitaly
...
Migration: https://gitlab.com/gitlab-org/gitaly/issues/220
2018-06-14 09:56:16 +02:00
Nick Thomas
65dbead796
Fix repository archive generation when hashed storage is enabled
2018-06-05 20:44:07 +01:00
Jacob Vosmaer (GitLab)
a0808df0b6
Find and mark more Git disk access locations
2018-06-05 15:51:14 +00:00
Jacob Vosmaer (GitLab)
3a4ecfd0c9
Prevent Gitaly WriteConfig log noise
2018-06-05 12:55:41 +00:00
Jacob Vosmaer (GitLab)
edb9db37ed
Add "deny disk access" Gitaly feature (tripswitch)
2018-06-01 11:56:29 +00:00
Kim "BKC" Carlbäcker
0db994fedc
Fix encoding error in Gitaly::Commit::TreeEntry
2018-05-30 17:33:17 +02:00
Grzegorz Bizon
b113330fab
Merge branch 'zj-workhorse-archive-mandatory' into 'master'
...
Move git archives downloading to Gitaly
See merge request gitlab-org/gitlab-ce!18990
2018-05-21 07:08:58 +00:00