Some repositories couldn't be updated, please check application logs for details.
BadCredentialsException: 401 {"message": "Bad credentials", "documentation_url": "https://docs.github.com/rest", "status": "401"}

aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ci.c')
-rw-r--r--src/ci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ci.c b/src/ci.c
index 0e40548..d906fc4 100644
--- a/src/ci.c
+++ b/src/ci.c
@@ -31,13 +31,13 @@ static const char *ci_env[] = {
};
/* clang-format on */
-static int ci_run_script(const char *script, struct proc_output *result)
+static int ci_run_script(const char *script, struct process_output *result)
{
const char *args[] = {script, NULL};
- return proc_capture(args, ci_env, result);
+ return process_execute_and_capture(args, ci_env, result);
}
-int ci_run(struct proc_output *result)
+int ci_run(struct process_output *result)
{
for (const char **script = ci_scripts; *script; ++script) {
if (!file_exists(*script))
@@ -76,7 +76,7 @@ cleanup_repo:
return ret;
}
-int ci_run_git_repo(const char *url, const char *rev, struct proc_output *output)
+int ci_run_git_repo(const char *url, const char *rev, struct process_output *output)
{
char *oldpwd = NULL;
git_repository *repo = NULL;
@@ -86,7 +86,7 @@ int ci_run_git_repo(const char *url, const char *rev, struct proc_output *output
if (ret < 0)
goto exit;
- ret = my_chdir(git_repository_workdir(repo), &oldpwd);
+ ret = chdir_wrapper(git_repository_workdir(repo), &oldpwd);
if (ret < 0)
goto free_repo;
@@ -95,7 +95,7 @@ int ci_run_git_repo(const char *url, const char *rev, struct proc_output *output
goto oldpwd;
oldpwd:
- my_chdir(oldpwd, NULL);
+ chdir_wrapper(oldpwd, NULL);
free(oldpwd);
free_repo: