mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +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)
|
def git_commit(action, title, *files)
|
||||||
quoted_files = files.map { |f| "\"#{quote(f)}\"" }
|
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}\"")
|
run("git add -A #{quoted_files.join(' ')} && git commit -m \"#{message}\"")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue