aboutsummaryrefslogtreecommitdiff
path: root/src/fetch_git.c
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-06-21 01:33:58 +0000
committerdacctal <dacctal@symlinx.net>2026-06-21 01:33:58 +0000
commit7cde9aeb5dccce578c1eed13cf1ed2c61e446800 (patch)
tree3323e34bbec0a87a4bb659a90816b28a6a241f5a /src/fetch_git.c
parent6482da05e96630d622f7deea02e31cb0ff07c89e (diff)
huge code cleanup
Diffstat (limited to 'src/fetch_git.c')
-rw-r--r--src/fetch_git.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fetch_git.c b/src/fetch_git.c
index 2d9e9a2..d7d1741 100644
--- a/src/fetch_git.c
+++ b/src/fetch_git.c
@@ -1,6 +1,5 @@
#include <fcntl.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
@@ -41,7 +40,7 @@ int fetch_git(Pkg pkg) {
waitpid(pid, &status, 0);
int result = WIFEXITED(status) ? WEXITSTATUS(status) : -1;
if (result != 0) {
- printf("%s git clone failed\n", print_warning);
+ printf("%s git clone failed: %d\n", print_warning, result);
}
return result;