From 7e139b5384e80e6f6bd6894f2456cfdb4f13b0aa Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Sat, 21 Mar 2020 10:54:57 +1100 Subject: [PATCH] tools: gen_vc escape double quotes in sibject --- cmd/tools/gen_vc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/gen_vc.v b/cmd/tools/gen_vc.v index 7d83cd84aa..5aa744ccc8 100644 --- a/cmd/tools/gen_vc.v +++ b/cmd/tools/gen_vc.v @@ -268,7 +268,7 @@ fn (gen_vc mut GenVC) generate() { last_commit_hash_v_short := last_commit_hash_v[..7] // subject - last_commit_subject := git_log_v.find_between('Subject:', '\n').trim_space() + last_commit_subject := git_log_v.find_between('Subject:', '\n').trim_space().replace('"', '\\"') // log some info gen_vc.logger.debug('last commit time ($git_repo_v): ' + last_commit_time_v.format_ss())