From 1cec9d6cb41d157d2e907e5ef5717dd508222c0c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Jan 2019 12:27:53 +0200 Subject: Don't show tagging status in bdep-release open mode It will always be 'no' since we don't tag in this mode. --- bdep/release.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bdep/release.cxx b/bdep/release.cxx index 3b2159a..bfdc98b 100644 --- a/bdep/release.cxx +++ b/bdep/release.cxx @@ -634,8 +634,10 @@ namespace bdep if (!o.tag ()) dr << " commit: " << (commit ? "yes" : "no") << '\n'; - dr << " tag: " << (prj.tag ? prj.tag->c_str () : "no") << '\n' - << " push: " << (push ? st.upstream.c_str () : "no"); + if (!o.open ()) // Does not make sense in the open mode. + dr << " tag: " << (prj.tag ? prj.tag->c_str () : "no") << '\n'; + + dr << " push: " << (push ? st.upstream.c_str () : "no"); dr.flush (); -- cgit v1.1