From 6239ead36bd8b39e3daafe23d38af576ea7084cc Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 23 Apr 2016 11:44:00 -0400 Subject: [PATCH] Fix thor docs:commit command --- lib/tasks/docs.thor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 57dc9ed2..86882a86 100644 --- a/lib/tasks/docs.thor +++ b/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