diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-09-23 13:48:29 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-09-27 12:51:15 +0300 |
commit | 271776d4aa25a23b6f58c6befa94a240e61d4120 (patch) | |
tree | 5643a3e07a8e5efd9b03398d36e23606e91df091 /lib/gitlab/gitaly_client | |
parent | a1529944e962fc9b4addee324b4e606c4b7b1e93 (diff) |
Adds chmod action to POST /projects/:id/repository/commits API
With this action the user can update the execute_filemode of a given file in the repository.
Diffstat (limited to 'lib/gitlab/gitaly_client')
-rw-r--r-- | lib/gitlab/gitaly_client/operation_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client/operation_service.rb b/lib/gitlab/gitaly_client/operation_service.rb index 54c78fdb680..0f148614b20 100644 --- a/lib/gitlab/gitaly_client/operation_service.rb +++ b/lib/gitlab/gitaly_client/operation_service.rb @@ -333,7 +333,8 @@ module Gitlab action: action[:action].upcase.to_sym, file_path: encode_binary(action[:file_path]), previous_path: encode_binary(action[:previous_path]), - base64_content: action[:encoding] == 'base64' + base64_content: action[:encoding] == 'base64', + execute_filemode: !!action[:execute_filemode] ) rescue RangeError raise ArgumentError, "Unknown action '#{action[:action]}'" |