From 39595aaca3c16cc483dcaacdebaecc24c952246b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 29 Apr 2024 16:10:22 +0100 Subject: [PATCH] hyprctl: make commits wrapped in quotes in json --- src/debug/HyprCtl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index ce2f5c45..06c6405f 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -834,7 +834,7 @@ std::string versionRequest(eHyprCtlOutputFormat format, std::string request) { "commit_message": "{}", "commit_date": "{}", "tag": "{}", - "commits": {}, + "commits": "{}", "flags": [)#", GIT_BRANCH, GIT_COMMIT_HASH, (strcmp(GIT_DIRTY, "dirty") == 0 ? "true" : "false"), escapeJSONStrings(commitMsg), GIT_COMMIT_DATE, GIT_TAG, GIT_COMMITS);