diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-04-04 13:18:48 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-04-04 13:18:48 +0300 |
commit | 6c75bd015cba181f028bc87c396c3d8e43b5dc3e (patch) | |
tree | fd64ad909f93764cb9c1e89a1be0c9e4c921e305 /app/models | |
parent | 1be7f5aaa38aba79843eae8835be6c99c025e982 (diff) | |
parent | 68a0ba941966e742f7c5eb21a26928b1f1d6b156 (diff) |
Merge branch '24704-download-repository-path' into 'master'
Download a folder from repository
Closes #24704
See merge request gitlab-org/gitlab-ce!26532
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/repository.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 574ce12b309..51ab2247a03 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -299,13 +299,14 @@ class Repository end end - def archive_metadata(ref, storage_path, format = "tar.gz", append_sha:) + def archive_metadata(ref, storage_path, format = "tar.gz", append_sha:, path: nil) raw_repository.archive_metadata( ref, storage_path, project.path, format, - append_sha: append_sha + append_sha: append_sha, + path: path ) end |