diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-05 09:02:13 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-05 09:02:13 +0200 |
commit | fc16a228c915437e17dc040e2798c26acac8fd86 (patch) | |
tree | a273c36de81f2b2d8b23c02513061ab66b659640 /app/services/files/update_service.rb | |
parent | 31987259e4c1d878bb796d07e5594156dbcfac5c (diff) | |
download | gitlab-ce-fc16a228c915437e17dc040e2798c26acac8fd86.tar.gz |
Fix blobs for file services
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/files/update_service.rb')
-rw-r--r-- | app/services/files/update_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/files/update_service.rb b/app/services/files/update_service.rb index d59802ae485..19bd62e1e36 100644 --- a/app/services/files/update_service.rb +++ b/app/services/files/update_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") |