gitlab-org--gitlab-foss/app/services/files
Frank West ade0c2c892 Prevents accidental overwrites of commits from UI
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
2016-08-15 02:34:55 +00:00
..
base_service.rb Prevents accidental overwrites of commits from UI 2016-08-15 02:34:55 +00:00
create_dir_service.rb Add ability to create directories in the editor 2015-10-29 15:49:07 +01:00
create_service.rb Services: code style fixes, minor refactoring 2016-07-06 20:58:43 +03:00
delete_service.rb Refactor how repository makes commit with pre/post receive hooks 2015-08-14 16:23:40 +02:00
update_service.rb Prevents accidental overwrites of commits from UI 2016-08-15 02:34:55 +00:00