aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.txx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/git.txx')
-rw-r--r--bdep/git.txx9
1 files changed, 8 insertions, 1 deletions
diff --git a/bdep/git.txx b/bdep/git.txx
index 4abae3c..c4202de 100644
--- a/bdep/git.txx
+++ b/bdep/git.txx
@@ -8,9 +8,16 @@ namespace bdep
void
run_git (const semantic_version& min_ver, const dir_path& repo, A&&... args)
{
+ // We don't expect git to print anything to stdout, as the caller would use
+ // start_git() and pipe otherwise. Thus, let's redirect stdout to stderr
+ // for good measure, as git is known to print some informational messages
+ // to stdout.
+ //
process pr (start_git (min_ver,
repo,
- 0 /* stdin */, 1 /* stdout */, 2 /* stderr */,
+ 0 /* stdin */,
+ 2 /* stdout */,
+ 2 /* stderr */,
forward<A> (args)...));
finish_git (pr);