@matheusbsbs / matheus-bagliano / commits / 18d5cf908f
Fork 0

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>

Simon Arlott committed Mar 29, 2009 at 20:34 UTC 18d5cf908fe89c780872acc8a9f11d061e4556b6
1 file changed +3 -3
git-svn.perl
+3 -3
@@ -2331,13 +2331,13 @@ sub do_git_commit {
2331
2332 $self->{last_rev} = $log_entry->{revision};
2333 $self->{last_commit} = $commit;
2334 - print "r$log_entry->{revision}";
2334 + print "r$log_entry->{revision}" unless $::_q;
2335 if (defined $log_entry->{svm_revision}) {
2336 - print " (\@$log_entry->{svm_revision})";
2336 + print " (\@$log_entry->{svm_revision})" unless $::_q;
2337 $self->rev_map_set($log_entry->{svm_revision}, $commit,
2338 0, $self->svm_uuid);
2339 }
2340 - print " = $commit ($self->{ref_id})\n";
2340 + print " = $commit ($self->{ref_id})\n" unless $::_q;
2341 if (--$_gc_nr == 0) {
2342 $_gc_nr = $_gc_period;
2343 gc();