aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-01-30 00:16:22 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-01-30 00:16:22 -0500
commit31936d2d7230f9134e17148646b23aaf1e6c1c13 (patch)
tree13de1eb38a1ace43eaf15e18c43a9a79b91da575 /src/utils.c
parent95b791fa4625eaec2a612a4fd9043b7e7148b341 (diff)
downloadstasis-31936d2d7230f9134e17148646b23aaf1e6c1c13.tar.gz
General improvements
* Fix segfault related to Delivery.storage.tmpdir not being initialized properly * Add delivery_format_str() to make delivery rules easier to maintain * Test configurations can accept their own runtime variables * When no conda package or python packages are to be installed, indicate that state by printing "N/A" in output summary * Change shell_safe() accept a string instead of an array * Add support for artifactory client certs key/path * Initial pass at defining an artifactory repo destination (not fully implemented yet) * Add missing line feeds to error messages during ini config initialization
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 85a7a74..9e941f1 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -347,7 +347,7 @@ int git_clone(struct Process *proc, char *url, char *destdir, char *gitref) {
sprintf(command, "%s clone --recursive %s", program, url);
if (destdir && access(destdir, F_OK) < 0) {
sprintf(command + strlen(command), " %s", destdir);
- result = shell2(proc, command);
+ result = shell(proc, command);
}
if (destdir) {
@@ -360,12 +360,12 @@ int git_clone(struct Process *proc, char *url, char *destdir, char *gitref) {
{
memset(command, 0, sizeof(command));
sprintf(command, "%s fetch --all", program);
- result += shell2(proc, command);
+ result += shell(proc, command);
if (gitref != NULL) {
memset(command, 0, sizeof(command));
sprintf(command, "%s checkout %s", program, gitref);
- result += shell2(proc, command);
+ result += shell(proc, command);
}
popd();
}