diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-12-15 14:45:24 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-10 19:43:09 +0300 |
commit | bf3d969ef2dbc615bd528f559920bcf532dda910 (patch) | |
tree | 8f965c8a2d883f48fd643bc4cdb3f891ef182b99 /bdep/git.txx | |
parent | 884b16c882863f1eb5144a4bf7d1739bdf99a271 (diff) |
Implement bdep-release that manages project's version during release
Diffstat (limited to 'bdep/git.txx')
-rw-r--r-- | bdep/git.txx | 9 |
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); |