History

Fix thor docs:commit command

Thibaut Courouble committed 10 years ago

Commit 6239ead1 parent b5b6cab1 file · +1 −1Browse files

Unified · Split

lib/tasks/docs.thor+1−1
@@ -161,7 +161,7 @@ class DocsCLI < Thor · 160 unmodified lines
161161 doc = Docs.find(name, false)
162162 message = options[:message] || "Update #{doc.name} documentation (#{doc.versions.map(&:release).join(', ')})"
163163 amend = " --amend" if options[:amend]
164− system("git add assets/ *#{doc.slug}*") && system("git commit -m '#{message}'#{amend}")
164+ system("git add assets/ *#{name}*") && system("git commit -m '#{message}'#{amend}")
165165 rescue Docs::DocNotFound => error
166166 handle_doc_not_found_error(error)
167167 end