From 16f20cd4834c6a004246a80ca18033ca80224b56 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 5 Aug 2022 13:58:09 -0300 Subject: git: Don't return an error when the patch file array is NULL in `create_pull_request_dir()` This is because we won't be creating patch files for remote branches. --- git.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/git.c b/git.c index a903495..447d9fe 100644 --- a/git.c +++ b/git.c @@ -777,8 +777,7 @@ int create_pull_request_dir(pull_request *pr, index_t *idx, const char *root, co free_files(commits); } } else { - log(LOG_ERR, "Patch file array is NULL."); - ret = -1; + log(LOG_WARNING, "Patch file array is NULL."); } free(pr_dir); return ret; -- cgit v1.2.3-13-gbd6f