Unified · Split
| @@ -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 => error | 165 | rescue Docs::DocNotFound => error |
| 166 | handle_doc_not_found_error(error) | 166 | handle_doc_not_found_error(error) |
| 167 | end | 167 | end |