fixes asprintf that use a wrong json escaping format
@@ -24,7 +24,8 @@ int commit (char * username, char * token,
run(&data, &last_sha, load, NULL,
GET, "/repos/%s/%s/git/refs/heads/master", username, repo_name);
- body.size = asprintf(&body.str, "{ [ref]: [refs/heads/%s], [sha]:[%s] }",
+ body.size = json_asprintf(&body.str,
+ "{ |ref|: |refs/heads/%s|, |sha|:|%s| }",
branch_name, last_sha);
init(&data, username, token);
