summaryrefslogtreecommitdiff
path: root/spec/services/files
Commit message (Collapse)AuthorAgeFilesLines
* Adds chmod action to POST /projects/:id/repository/commits APIJacopo2018-09-271-1/+35
| | | | With this action the user can update the execute_filemode of a given file in the repository.
* Guard against regressions in commit email specsNick Thomas2018-09-183-2/+5
|
* Use the correct email address when committing via a file serviceNick Thomas2018-09-173-1/+30
|
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-114-4/+4
|
* Make OperationService RPC's mandatoryJacob Vosmaer (GitLab)2018-07-031-12/+0
|
* Extract constant for LfsPointerFile::VERSION_LINEJames Edwards-Jones2018-03-162-4/+4
|
* Use correct encoding with Lfs::FileTransfromerJames Edwards-Jones2018-03-151-10/+30
|
* Multi-file upload and Commit API obey LFS filtersJames Edwards-Jones2018-03-151-1/+33
| | | | | | | | Updates Files::MultiService for the commits API which is in turn used by the multi-file upload web UI Ensures that files which should be in LFS are transformed into LFS pointers Uses Lfs::Transformer which then links LfsObjectProjects on success
* File upload UI obeys LFS filtersJames Edwards-Jones2018-02-061-0/+78
| | | | | | | | | | | Uses Lfs::FileModificationHandler to coordinate LFS detection, creation of LfsObject, etc Caveats: 1. This isn't used by the multi-file editor / Web IDE 2. This isn't used on rename. We'd need to be able to download LFS files and add them to the commit if they no longer match so not as simple. 3. We only check the root .gitattributes file, so this should be improved to correctly check for nested .gitattributes files in subfolders.
* Incorporate Gitaly's OperationService.UserCommitFiles RPCgitaly-user-commit-filesAlejandro Rodríguez2018-01-221-5/+7
|
* Move git operations for multi_action into Gitlab::GitAlejandro Rodríguez2018-01-051-2/+2
|
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-223-3/+3
|
* Updates from last code review:38356-add-last_commit_sha-to-the-commit-apiRubén Dávila2017-12-202-5/+118
| | | | | | - Apply some refactoring for code reuse - Add file status validation for Files::DeleteService - Write additional specs
* Check if file has been modified for each action provided.Rubén Dávila2017-12-201-2/+43
| | | | | | When commiting multiple files we're now checking if any of those files has been modified by another commit and we're rejecting the new commit in this case.
* Add some initial specs for Files::MultiService classRubén Dávila2017-12-201-0/+54
|
* Move GitHooksService to Gitlab::GitJacob Vosmaer2017-08-231-1/+1
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Refactor changing files in web UIDouwe Maan2017-04-201-3/+3
|
* Use `:empty_project` where possible in service specsRobert Speicher2017-03-271-1/+1
|
* Fix renamingLin Jen-Shin2017-01-071-2/+2
|
* Add a test to make sure hooks are fire only onceLin Jen-Shin2016-11-051-14/+15
| | | | when updating a file to a different branch.
* multi-file commitMarc Siegfriedt2016-10-051-2/+2
| | | | | | add docs and tests - add additional validation allow move without content updated response
* Prevents accidental overwrites of commits from UIFrank West2016-08-151-0/+84
Currently when a user performs an update of a file through the UI and there has already been a change committed to the file the previous commits will be overwritten without a check to see if the file has been changed. This commit uses the last commit sha at the time the user starts editing the file and compares it with the current sha of the file being edited to ensure they are the same before committing the file. If the shas do not match we throw an exception preventing the commit from the commit from occurring. Fixes #5857