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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-05 13:39:55 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-05 13:39:55 +0400
commit55572c4e86c6b4cb12c8984b54de57fc02972ad1 (patch)
treeeb9fb516b0300737bae24dc5119460a5eadd2eb3 /app/services/files/delete_service.rb
parentd701d5869516142a4073804622503299202cfbe2 (diff)
Repository#blob_at_branch
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/files/delete_service.rb')
-rw-r--r--app/services/files/delete_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/files/delete_service.rb b/app/services/files/delete_service.rb
index bacd0ccc5fb..ff5dc6ef34c 100644
--- a/app/services/files/delete_service.rb
+++ b/app/services/files/delete_service.rb
@@ -17,8 +17,7 @@ module Files
return error("You can only create files if you are on top of a branch")
end
- commit = repository.commit(ref)
- blob = repository.blob_at(commit.sha, path)
+ blob = repository.blob_at_branch(ref, path)
unless blob
return error("You can only edit text files")