mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix thor docs:commit command
This commit is contained in:
parent
b5b6cab002
commit
6239ead36b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue