diff options
author | Marc Siegfriedt <marc@techaccelerator.com> | 2016-08-29 23:58:32 +0000 |
---|---|---|
committer | Marc Siegfriedt <marc@techaccelerator.com> | 2016-10-05 17:42:52 +0000 |
commit | a1ee8cf5ad07256807f15590bdb5f56152d55553 (patch) | |
tree | 9f90bc8f0d3c5d65e9b8778bc9d80e4ecd8855dd /app/services/files/update_service.rb | |
parent | 4bc27cd17b304abce01fad1fce56fce32a4ee099 (diff) | |
download | gitlab-ce-a1ee8cf5ad07256807f15590bdb5f56152d55553.tar.gz |
multi-file commit
add docs and tests - add additional validation
allow move without content
updated response
Diffstat (limited to 'app/services/files/update_service.rb')
-rw-r--r-- | app/services/files/update_service.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb index 9e9b5b63f26..c17fdb8d1f1 100644 --- a/app/services/files/update_service.rb +++ b/app/services/files/update_service.rb @@ -23,12 +23,6 @@ module Files end end - def file_has_changed? - return false unless @last_commit_sha && last_commit - - @last_commit_sha != last_commit.sha - end - def last_commit @last_commit ||= Gitlab::Git::Commit. last_for_path(@source_project.repository, @source_branch, @file_path) |