Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-04-12Add frozen_string_literal to spec/servicesThong Kuah
Probably useful as we often move these files to "new" files.
2018-07-10Make sure ConflictsService does not raise for conflicting submodulesSean McGivern
2018-07-09Updates from `rubocop -a`Lin Jen-Shin
2018-07-06Partially rever "Revert "Merge branch 'gitaly-mandatory-20180703-jv' into ↵Jacob Vosmaer
'master'"" This partially reverts commit 64dfe2cba1594b67e56233230be8137fa0afacf9.
2018-07-05Revert "Merge branch 'gitaly-mandatory-20180703-jv' into 'master'"Jacob Vosmaer (GitLab)
This reverts merge request !20339
2018-07-04Make more Gitaly features mandatoryJacob Vosmaer (GitLab)
2018-05-17Add cannot_be_merged_recheck merge_statuslulalala
First, transitions between can_be_merged & cannot_be_merged are removed, as they are currently blocked in `check_if_can_be_merged`. `can_be_merge` always returns to `unchecked` first, before it can transition to `cannot_be_merged` (and vice versa). We want to avoid repeated notification triggered by repeated transition between `cannot_be_merged` & `unchecked`. So we added `cannot_be_merged_recheck` state, similar to `unchecked`, but as a mean to remember it’s from cannot_be_merged. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18042/#note_65945407 Since `unchecked` and `cannot_be_merged_recheck` both mean “we are in the middle of checking if it is mergeable”, quite often we need to see if merge_status is in either one of them, so `check_state?` is added to achieve this.
2018-04-06Fix 500 error when MR from fork has conflicts but worker has not runSean McGivern
If the ref hasn't been fetched into the target repository yet, this will fail with a Rugged::ReferencError (assuming we're not using Gitaly). We should handle this in the same way as a missing ref.
2017-12-27Incorporate ConflictsService.ListConflictFiles Gitaly RPCAlejandro Rodríguez
2017-12-14Simplify conflict resolver interfaceAlejandro Rodríguez
This does two things: - Pass commit oids instead of `Gitlab::Git::Commit`s. We only need the former. - Depend on only the target repository for conflict listing. For conflict resolution, treat one repository as a remote one so that we can implement it as such in Gitaly.
2017-10-13Create a Gitlab::Git submodule for conlict-related filesAlejandro Rodríguez
Rename classes to (hopefully) clearer names while we're doing that.
2017-10-13Refactor conflict resolution to contain git ops within Gitlab::GitAlejandro Rodríguez
This prepares the codebase for a Gitaly migration. See https://gitlab.com/gitlab-org/gitaly/issues/553
2017-10-13Encapsulate git operations for conflict resolution into libAlejandro Rodríguez
2017-10-11Backport EE change for setting up forked projectLin Jen-Shin
2017-10-07Add a project forks spec helperBob Van Landuyt
The helper creates a fork of a project with all provided attributes, but skipping the creation of the repository on disk.
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-01Keep trailing newline when picking conflict sectionsSean McGivern
If our side of the conflict file has a trailing newline, and we are picking sections, not editing the whole content, then add a trailing newline back.
2017-05-18Stop MR conflict code from blowing up when branches are missingDouwe Maan
2017-05-12Fix conflict resolution from corrupted upstreamSean McGivern
I don't know why this happens exactly, but given an upstream and fork repository from a customer, both of which required GC, resolving conflicts would corrupt the fork so badly that it couldn't be cloned. This isn't a perfect fix for that case, because the MR may still need to be merged manually, but it does ensure that the repository is at least usable. My best guess is that when we generate the index for the conflict resolution (which we previously did in the target project), we obtain a reference to an OID that doesn't exist in the source, even though we already fetch the refs from the target into the source. Explicitly setting the source project as the place to get the merge index from seems to prevent repository corruption in this way.