diff options
Diffstat (limited to 'app/services/files/delete_service.rb')
-rw-r--r-- | app/services/files/delete_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/files/delete_service.rb b/app/services/files/delete_service.rb index 30e512d0912..bacd0ccc5fb 100644 --- a/app/services/files/delete_service.rb +++ b/app/services/files/delete_service.rb @@ -17,7 +17,8 @@ module Files return error("You can only create files if you are on top of a branch") end - blob = repository.blob_at(ref, path) + commit = repository.commit(ref) + blob = repository.blob_at(commit.sha, path) unless blob return error("You can only edit text files") |