aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-04-05 22:22:44 +0200
committereldritch horrors <pennae@lix.systems>2024-07-05 22:28:16 +0000
commitb6a08a2fed8a48d3759ea67e958c9f9ec5f44d94 (patch)
tree7cfdefa2d8c354a77f9d8977ad33efbc1766ed33 /src/libfetchers
parentf4f6d1d8e24a092422fcec601e21683179b735c9 (diff)
libutil: return a program handle from runProgram2
this will let us also return a source for the program output later, which will in turn make sinkToSource unnecessary for program output processing. this may also reopen a path for provigin program input, but that still needs a proper async io framework to avoid problems. Change-Id: Iaf93f47db99c38cfaf134bd60ed6a804d7ddf688
Diffstat (limited to 'src/libfetchers')
-rw-r--r--src/libfetchers/git.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc
index 10e125207..75ac926e2 100644
--- a/src/libfetchers/git.cc
+++ b/src/libfetchers/git.cc
@@ -695,7 +695,7 @@ struct GitInputScheme : InputScheme
.program = "git",
.args = { "-C", repoDir, "--git-dir", gitDir, "archive", input.getRev()->gitRev() },
.standardOut = &sink
- });
+ }).wait();
});
unpackTarfile(*source, tmpDir);