diff options
Diffstat (limited to 'bdep/release.cxx')
-rw-r--r-- | bdep/release.cxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/bdep/release.cxx b/bdep/release.cxx index cb4cac9..e550d32 100644 --- a/bdep/release.cxx +++ b/bdep/release.cxx @@ -888,17 +888,20 @@ namespace bdep brspec = st.branch + ':' + string (st.upstream, p + 1); } - // Note that we suppress the (too detailed) push command output if - // the verbosity level is 1. However, we still want to see the - // progress in this case. - // - run_git (git_ver, - prj.path, - "push", - verb < 1 ? "-q" : verb >= 2 ? "-v" : nullptr, - remote, - brspec, - !tagspec.empty () ? tagspec.c_str () : nullptr); + if (verb && !o.no_progress ()) + { + diag_record dr (text); + dr << "pushing branch " << st.branch; + + if (prj.tag) + dr << ", tag " << *prj.tag; + } + + git_push (o, + prj.path, + remote, + brspec, + !tagspec.empty () ? tagspec.c_str () : nullptr); } return 0; |