]> git.pld-linux.org Git - packages/cvsspam.git/blob - cvsspam-cvsroot_trailing_slash.patch
- wordwrap for css .comment class
[packages/cvsspam.git] / cvsspam-cvsroot_trailing_slash.patch
1 Index: collect_diffs.rb
2 ===================================================================
3 RCS file: /var/lib/cvs/cvsspam/collect_diffs.rb,v
4 retrieving revision 1.24
5 diff -u -r1.24 collect_diffs.rb
6 --- collect_diffs.rb    20 Feb 2005 13:35:15 -0000      1.24
7 +++ collect_diffs.rb    27 Feb 2005 17:35:12 -0000
8 @@ -157,7 +157,8 @@
9      fail "CVSROOT ('#{cvsroot}') doesn't match log preamble ('#{$path}')"
10    end
11  
12 -  $repository_path = $path.slice(cvsroot.length+1, $path.length-cvsroot.length-1)
13 +  $repository_path = $path.slice(cvsroot.length, $path.length-cvsroot.length)
14 +  $repository_path.sub!(/^\//, "")  # remove leading '/', if present
15  
16    if $use_modern_argument_list
17      changes = collect_modern_style_args(cvs_info)
This page took 0.131037 seconds and 3 git commands to generate.