From b21010c3aaf60fcf695f2541c6523a75337b1c9f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 16 Dec 2024 12:45:56 -0500 Subject: git_clone return NULL on checkout error --- src/lib/core/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index aa4173c..96c89bb 100644 --- a/src/lib/core/utils.c +++ b/src/lib/core/utils.c @@ -331,7 +331,7 @@ int git_clone(struct Process *proc, char *url, char *destdir, char *gitref) { { memset(command, 0, sizeof(command)); sprintf(command, "%s fetch --all", program); - result += shell(proc, command); + result = shell(proc, command); if (gitref != NULL) { memset(command, 0, sizeof(command)); -- cgit