Răsfoiți Sursa

Fix thor docs:commit command

Thibaut Courouble 9 ani în urmă
părinte
comite
6239ead36b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lib/tasks/docs.thor

+ 1 - 1
lib/tasks/docs.thor

@@ -161,7 +161,7 @@ class DocsCLI < Thor
     doc = Docs.find(name, false)
     message = options[:message] || "Update #{doc.name} documentation (#{doc.versions.map(&:release).join(', ')})"
     amend = " --amend" if options[:amend]
-    system("git add assets/ *#{doc.slug}*") && system("git commit -m '#{message}'#{amend}")
+    system("git add assets/ *#{name}*") && system("git commit -m '#{message}'#{amend}")
   rescue Docs::DocNotFound => error
     handle_doc_not_found_error(error)
   end