diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-05 11:39:55 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-05 11:39:55 +0200 |
commit | 55572c4e86c6b4cb12c8984b54de57fc02972ad1 (patch) | |
tree | eb9fb516b0300737bae24dc5119460a5eadd2eb3 /app/services/files/create_service.rb | |
parent | d701d5869516142a4073804622503299202cfbe2 (diff) | |
download | gitlab-ce-55572c4e86c6b4cb12c8984b54de57fc02972ad1.tar.gz |
Repository#blob_at_branch
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/files/create_service.rb')
-rw-r--r-- | app/services/files/create_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/files/create_service.rb b/app/services/files/create_service.rb index 1876dba0887..1998fb79e7d 100644 --- a/app/services/files/create_service.rb +++ b/app/services/files/create_service.rb @@ -24,8 +24,7 @@ module Files return error("Your changes could not be committed, because file name contains not allowed characters") end - commit = repository.commit(ref) - blob = repository.blob_at(commit.sha, file_path) + blob = repository.blob_at_branch(ref, file_path) if blob return error("Your changes could not be committed, because file with such name exists") |