From bf3d969ef2dbc615bd528f559920bcf532dda910 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 15 Dec 2018 14:45:24 +0200 Subject: Implement bdep-release that manages project's version during release --- bdep/git.txx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bdep/git.txx') 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 (args)...)); finish_git (pr); -- cgit v1.1