aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-14 12:27:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-14 12:27:53 +0200
commit1cec9d6cb41d157d2e907e5ef5717dd508222c0c (patch)
tree859ff7ab2a86e1b9e40d8d50003d939c1d8e7699
parent9c6aa152d1a8e7e9631d9dc71537d8bae2599b80 (diff)
Don't show tagging status in bdep-release open mode
It will always be 'no' since we don't tag in this mode.
-rw-r--r--bdep/release.cxx6
1 files 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 ();