[Bps-public-commit] r17768 - in Shipwright/trunk: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Jan 16 05:06:54 EST 2009


Author: sunnavy
Date: Fri Jan 16 05:06:53 2009
New Revision: 17768

Modified:
   Shipwright/trunk/   (props changed)
   Shipwright/trunk/lib/Shipwright/Backend.pm

Log:
 r18819 at sunnavys-mb:  sunnavy | 2009-01-16 17:43:52 +0800
 set to abs_path only when the abs_path is not null


Modified: Shipwright/trunk/lib/Shipwright/Backend.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Backend.pm	(original)
+++ Shipwright/trunk/lib/Shipwright/Backend.pm	Fri Jan 16 05:06:53 2009
@@ -46,7 +46,8 @@
     }
     elsif ( $args{repository} =~ m{^\s*fs:} ) {
         $args{repository} =~ s{^\s*fs:}{};
-        $args{repository} = abs_path( $args{repository} );
+        my $abs_path = abs_path($args{repository});
+        $args{repository} = $abs_path if $abs_path;
         $module = 'Shipwright::Backend::FS';
     }
     else {



More information about the Bps-public-commit mailing list