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
2019-09-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-04Avoid calling freeze on already frozen strings in lib/gitlabdineshpanda
2019-06-19Add documentation and testsManoj MJ
This commit adds - feature specs - to test the ability of a user with "developer" permission to delete tags in repositories. - documentation
2019-04-23Add feature flag to disable LFS checkIgor
2019-04-22Remove protected_branch_creation feature flagPatrick Bajao
2019-03-21Allow users to create protected branches via CLIPatrick Bajao
This is for fixing a regression introduced by: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24969 This fix will allow users who are allowed to push to protected branches to create protected branches via CLI as well, just like before. The checks for protected branch creation won't need to run.
2019-03-07Move empty_repo check on its ownPatrick Bajao
2019-03-07Allow protected branch creation for empty projectPatrick Bajao
2019-03-06Allow protected branch creation via web and APIPatrick Bajao
This commit includes changes to add `UserAccess#can_create_branch?` which will check whether the user is allowed to create a branch even if it matches a protected branch. This is used in `Gitlab::Checks::BranchCheck` when the branch name matches a protected branch. A `push_to_create_protected_branch` ability in `ProjectPolicy` has been added to allow Developers and above to create protected branches.
2019-01-02Remove oldrev and newrev nil-checks that are now unnecessaryDouwe Maan
2019-01-02Don't run single change checks when changes are unknownDouwe Maan
When the `changes` passed to `GitAccess` are the literal string `_any`, which indicates that this is a pre-authorization check, we now check whether the user can push to any branch in the project in question, instead of running the per-change check with `oldrev` `_any`, `newrev` `nil`, and `ref` `nil`.
2019-01-02Skip change access check for deploy keysDouwe Maan
2018-12-28Skip per-commit validations which have already passed on another change/branchFrancisco Javier López
2018-12-11Remove now-unnecessary checksDouwe Maan
2018-12-11Fix DiffCheck failing due to invalid string argumentStan Hu
Hot patch for #55137
2018-12-04CE port Refactor Gitlab::Checks::ChangeAccess classFrancisco Javier López
2018-11-14Fix bug in CommitCheckFrancisco Javier López
2018-10-26Reverts commits_check messageTiago Botelho
2018-10-25Iterating through commit list times outTiago Botelho
Validating each commit on ChangeAccess times out if it already took too long to complete. Improves the TimedLogger specs to not make use of a stubbed class anymore
2018-10-25Refactors TimedLogger to be more OOP compliantTiago Botelho
Adds a #full_message method so that external classes do not have access to the state of the logger. Adds a #append_message to always append to the array in-place
2018-10-25Adds tracing messages for slow git pushesTiago Botelho
Whenever a git push takes more than 50 seconds the user will receive a trace from each check performed along with their timings
2018-10-13Enable some frozen string in lib/gitlabgfyoung
Enable frozen string for the following files: * lib/gitlab/auth/**/*.rb * lib/gitlab/badge/**/*.rb * lib/gitlab/bare_repository_import/**/*.rb * lib/gitlab/bitbucket_import/**/*.rb * lib/gitlab/bitbucket_server_import/**/*.rb * lib/gitlab/cache/**/*.rb * lib/gitlab/checks/**/*.rb Partially addresses #47424.
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-08-07Backport some changes from gitlab-org/gitlab-ee!6767Rubén Dávila
2018-07-18Improves remote message when a developer is unable to push in an empty ↵Tiago Botelho
repository
2018-06-19Force push is handled by Gitaly nowZeger-Jan van de Weg
Closes gitlab-org/gitaly#348
2018-06-19Eliminate N+1 queries in LFS file locks checks during a pushStan Hu
This significantly improves performance when a user pushes many references. project.path_locks.any? doesn't cache the output and runs `SELECT 1 AS one FROM "path_locks" WHERE project_id = N` each time. When there are thousands of refs being pushed, this can time out the unicorn worker. CE port for https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6159.
2018-06-06change wordingMark Chao
2018-04-05Add helper for accessing lfs_objects for projectBob Van Landuyt
This makes accessing LFS Objects for a project easier project.lfs_storage_project.lfs_objects` becomes project.all_lfs_objects This will make the refactor in https://gitlab.com/gitlab-org/gitlab-ce/issues/39769 easier to deal with.
2018-03-28Remove permanent redirectsBob Van Landuyt
Removes permanent redirects, this means that redirects will only be possible as long as the old route isn't taken by a new project/group.
2018-03-07Limit queries to a user-branch combinationBob Van Landuyt
The query becomes a lot simpler if we can check the branch name as well instead of having to load all branch names.
2018-03-07Allow maintainers to edit directly in a forkBob Van Landuyt
2018-02-19Merge branch 'jej/avoid-slow-file-lock-checks' into 'master'Sean McGivern
Avoid slow File Lock checks when not used Closes #43339 See merge request gitlab-org/gitlab-ce!17140
2018-02-19Avoid slow File Lock checks when not usedJames Edwards-Jones
Also avoid double commit lookup during file lock check by reusing memoized commits.
2018-02-15Only check LFS integrity for first branch in pushJames Edwards-Jones
2018-02-07Backport of LFS File Locking APIRubén Dávila
2018-02-06Merge branch 'master' into '26388-push-to-create-a-new-project'Douwe Maan
# Conflicts: # lib/gitlab/path_regex.rb
2018-02-06Moves project creationg to git access check for git pushTiago Botelho
2018-02-06Abstracts ProjectMoved and ProjectCreated into a BaseProjectTiago Botelho
2018-02-06Move new project on push logic to a serviceTiago Botelho
2018-02-06Add specsTiago Botelho
2018-02-06Adds remote messsage when project is created in a push over SSH or HTTPTiago Botelho
2018-02-02Refactor Gitlab::Git code related to LFS changes for Gitaly migrationAlejandro Rodríguez
We stop relying on Gitlab::Git::Env for the RevList class, and use Gitlab::Git::Repository#run_git methods inteaad. The refactor also fixes another issue, since we now top using "path_to_repo" (which is a Repository model method).
2018-01-23Backport changes to Gitlab::Checks::ChangeAccess from EEDouwe Maan
2017-12-25Disable redirect messages for anonymous clonesStan Hu
2017-12-25Fix Error 500s with anonymous clones for a project that has movedStan Hu
Closes #41457
2017-12-08Allow git pull/push on project redirectsMayra Cabrera
2017-11-09Handle forks in Gitlab::Checks::LfsIntegrityJames Edwards-Jones
2017-11-06Prevent git push when LFS objects are missingJames Edwards-Jones