summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-08-05 13:58:09 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-08-05 13:58:09 -0300
commit16f20cd4834c6a004246a80ca18033ca80224b56 (patch)
tree83a4a9d97edfb536248c81e49e6a0c42c9788626
parent93f7c56d879d0a4075b833f561b7b99fab5bd07c (diff)
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.
-rw-r--r--git.c3
1 files changed, 1 insertions, 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;