diff options
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r-- | lib/gitlab/git/repository.rb | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index dfbf8292f54..a98cf95edf4 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -163,12 +163,6 @@ module Gitlab branch_names.count end - def rename(new_relative_path) - wrapped_gitaly_errors do - gitaly_repository_client.rename(new_relative_path) - end - end - def remove wrapped_gitaly_errors do gitaly_repository_client.remove @@ -261,12 +255,8 @@ module Gitlab def archive_metadata(ref, storage_path, project_path, format = "tar.gz", append_sha:, path: nil) ref ||= root_ref - if Feature.enabled?(:resolve_ambiguous_archives, container) - commit_id = extract_commit_id_from_ref(ref) - return {} if commit_id.nil? - else - commit_id = ref - end + commit_id = extract_commit_id_from_ref(ref) + return {} if commit_id.nil? commit = Gitlab::Git::Commit.find(self, commit_id) return {} if commit.nil? @@ -1220,6 +1210,14 @@ module Gitlab end end + def get_file_attributes(revision, file_paths, attributes) + wrapped_gitaly_errors do + gitaly_repository_client + .get_file_attributes(revision, file_paths, attributes) + .attribute_infos + end + end + private def repository_info_size_megabytes |