]> git.mjollnir.org Git - cil.git/commitdiff
Make sure CIL::VCS::Null implements the VCS interface
authorAndrew Chilton <andychilton@gmail.com>
Thu, 2 Oct 2008 03:38:48 +0000 (16:38 +1300)
committerAndrew Chilton <andychilton@gmail.com>
Thu, 2 Oct 2008 03:38:48 +0000 (16:38 +1300)
lib/CIL/VCS/Null.pm

index 4cef1a482a7f99e288d375e3e8d869b55df6a110..c8c3dbf0a130f21c6b50e22fa1fbbd225bce2f38 100644 (file)
@@ -32,6 +32,11 @@ foreach my $method_name ( qw(post_add) ) {
     *{"CIL::VCS::Null::$method_name"} = sub {};
 }
 
+foreach my $method_name ( qw(UserName UserEmail) ) {
+    no strict 'refs';
+    *{"CIL::VCS::Null::$method_name"} = sub { return ''; };
+}
+
 ## ----------------------------------------------------------------------------
 1;
 ## ----------------------------------------------------------------------------