aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
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 ();