History

Fix thor docs:commit command

Thibaut Courouble committed 10 years ago

Commit 6239ead1 parent b5b6cab1 file · +1 −1Browse files

Showing the changes to lib (1 of 1 file). Show all

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t