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

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 14:22:58 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commitaa0595e250c45f58f52483df5fea8bc227827120 (patch)
tree4d76399b653740b97223bbb33f0e1f85ae47567d
parent32d414dab03dacfb0cf2ac1de83d1ce1a48db84c (diff)
index: drop unused doc_limit from index_l10n_doc()
This was copied from the regular index function, but the limit conditional is commented out. Since nobody seems to have complained, let's just drop the useless assignment and the commented-out code.
-rw-r--r--lib/tasks/index.rake2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index 258002b7..04839a37 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -44,7 +44,6 @@ def index_l10n_doc(filter_tags, doc_list, get_content)
end
puts "Found #{doc_files.size} entries"
- doc_limit = ENV["ONLY_BUILD_DOC"]
get_content_f = proc do |source, target|
name = File.join(File.dirname(source), target)
@@ -79,7 +78,6 @@ def index_l10n_doc(filter_tags, doc_list, get_content)
ids = Set.new([])
lang = File.dirname(full_path)
path = File.basename(full_path, ".txt")
- # next if doc_limit && path !~ /#{doc_limit}/
file = DocFile.where(name: path).first_or_create