Skip to content

Commit 18d5cf9

Browse files
nomisEric Wong
authored andcommitted
git-svn: don't output git commits in quiet mode
Ideally only errors should be output in this mode so fetch can be run from cron and normally produce no output. Without this change it would output a single line on each git commit, e.g. r1909 = 32ef87860662526d4a62f903949ed21e0341079e (u2_10_12_branch) Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Acked-by: Eric Wong <normalperson@yhbt.net>
1 parent 4f82101 commit 18d5cf9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

git-svn.perl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,13 +2331,13 @@ sub do_git_commit {
23312331

23322332
$self->{last_rev} = $log_entry->{revision};
23332333
$self->{last_commit} = $commit;
2334-
print "r$log_entry->{revision}";
2334+
print "r$log_entry->{revision}" unless $::_q;
23352335
if (defined $log_entry->{svm_revision}) {
2336-
print " (\@$log_entry->{svm_revision})";
2336+
print " (\@$log_entry->{svm_revision})" unless $::_q;
23372337
$self->rev_map_set($log_entry->{svm_revision}, $commit,
23382338
0, $self->svm_uuid);
23392339
}
2340-
print " = $commit ($self->{ref_id})\n";
2340+
print " = $commit ($self->{ref_id})\n" unless $::_q;
23412341
if (--$_gc_nr == 0) {
23422342
$_gc_nr = $_gc_period;
23432343
gc();

0 commit comments

Comments
 (0)