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
161 doc = Docs.find(name, false)161 doc = Docs.find(name, false)
162 message = options[:message] || "Update #{doc.name} documentation (#{doc.versions.map(&:release).join(', ')})"162 message = options[:message] || "Update #{doc.name} documentation (#{doc.versions.map(&:release).join(', ')})"
163 amend = " --amend" if options[:amend]163 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}")
165 rescue Docs::DocNotFound => error165 rescue Docs::DocNotFound => error
166 handle_doc_not_found_error(error)166 handle_doc_not_found_error(error)
167 end167 end