Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKia Mei Somabes <kssomabes@up.edu.ph>2018-07-13 07:41:24 +0300
committerPatrick Bajao <ebajao@gitlab.com>2019-04-02 17:06:56 +0300
commite028276d34571cd5128021ab5daf3088eb538be2 (patch)
treeb77366284ce8555deb5e2f92b39378c0f996eebf /app/helpers/workhorse_helper.rb
parent8b9da458ec31d053da0a26cf7b23ecf2f8baa8a6 (diff)
Add download directory in menu
Add subdirectory params for RepositoriesController#archive
Diffstat (limited to 'app/helpers/workhorse_helper.rb')
-rw-r--r--app/helpers/workhorse_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/workhorse_helper.rb b/app/helpers/workhorse_helper.rb
index bb5b1555dc4..7c49a6e1c6d 100644
--- a/app/helpers/workhorse_helper.rb
+++ b/app/helpers/workhorse_helper.rb
@@ -31,6 +31,7 @@ module WorkhorseHelper
# Archive a Git repository and send it through Workhorse
def send_git_archive(repository, **kwargs)
+ kwargs.delete(:subdirectory) if kwargs[:subdirectory].nil?
headers.store(*Gitlab::Workhorse.send_git_archive(repository, **kwargs))
head :ok
end