Skip to content

Commit 7afe582

Browse files
committed
Fixed logging
1 parent 3de8008 commit 7afe582

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Worker.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ namespace {
304304
NamedMutexGuard guard(cacheDir);
305305

306306
String command = String("git -C \"") + cacheDir + "\" fetch --quiet --prune --prune-tags";
307-
Log::infof("%s", command);
307+
Log::infof("%s", (const char*)command);
308308
Process process;
309309
uint32 pid = process.open(command, Process::stderrStream, envs);
310310
if (!pid)
@@ -321,7 +321,7 @@ namespace {
321321
return UpdateResult::AuthFailure;
322322

323323
command = String("git clone --quiet --mirror \"") + repoUrl + "\" \"" + cacheDir + "\"";
324-
Log::infof("%s", command);
324+
Log::infof("%s", (const char*)command);
325325
uint32 pid = process.open(command, Process::stderrStream, envs);
326326
if (!pid)
327327
{
@@ -368,7 +368,7 @@ void Worker::handleGetRequest(const String& repoUrl, const String& repo, const S
368368
// info response
369369
{
370370
String command = String("git-upload-pack --stateless-rpc --advertise-refs \"") + cacheDir + "\"";
371-
Log::infof("%s", command);
371+
Log::infof("%s", (const char*)command);
372372
Process process;
373373
uint32 pid = process.open(command);
374374
if (!pid)
@@ -408,7 +408,7 @@ void Worker::handlePostRequest(const String& repo, const String& auth, Buffer& b
408408

409409
{
410410
String command = String("git-upload-pack --stateless-rpc \"") + cacheDir + "\"";
411-
Log::infof("%s", command);
411+
Log::infof("%s", (const char*)command);
412412
Process process;
413413
uint32 pid = process.open(command, Process::stdoutStream | Process::stdinStream);
414414
if (!pid)

0 commit comments

Comments
 (0)