X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=daemon.c;h=bb014fa9c2cb8c02a3952d0fc521358222662da1;hb=50f9a858ada10b3b57691a313a1c78b0bcbe5947;hp=3bd14269d7e779630c1b00a3cf8a8cdba96ffc27;hpb=2111168f314ac4f53932b8bbb16191a3855f5b6f;p=git.git diff --git a/daemon.c b/daemon.c index 3bd14269..bb014fa9 100644 --- a/daemon.c +++ b/daemon.c @@ -9,6 +9,7 @@ #include #include "pkt-line.h" #include "cache.h" +#include "exec_cmd.h" static int log_syslog; static int verbose; @@ -227,7 +228,7 @@ static int upload(char *dir) snprintf(timeout_buf, sizeof timeout_buf, "--timeout=%u", timeout); /* git-upload-pack only ever reads stuff, so this is safe */ - execlp("git-upload-pack", "git-upload-pack", "--strict", timeout_buf, ".", NULL); + execl_git_cmd("upload-pack", "--strict", timeout_buf, ".", NULL); return -1; }