mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
gracefully handle saving posts without titles
This commit is contained in:
parent
446f1c85c3
commit
2fb181dbcb
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ class HarpBlog
|
|||
|
||||
def git_commit(action, title, *files)
|
||||
quoted_files = files.map { |f| "\"#{quote(f)}\"" }
|
||||
message = "#{action} '#{quote(title)}'"
|
||||
message = "#{action} '#{quote(title || 'Untitled')}'"
|
||||
run("git add -A #{quoted_files.join(' ')} && git commit -m \"#{message}\"")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue