[Bps-public-commit] Shipwright branch, master, updated. 892e9cfd85511286eb8cc8e27c2f800b3c381bea

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Mar 12 09:00:55 EST 2010


The branch, master has been updated
       via  892e9cfd85511286eb8cc8e27c2f800b3c381bea (commit)
      from  1959f30b2aa7a0d29008960a38629d29a04b3a42 (commit)

Summary of changes:
 Changes                       |    4 +++-
 lib/Shipwright/Backend/Git.pm |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 892e9cfd85511286eb8cc8e27c2f800b3c381bea
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Mar 12 21:57:09 2010 +0800

    _sync_local_dir only if the repo is created already

diff --git a/Changes b/Changes
index c38775d..8716efe 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
 Revision history for Shipwright
 
-2.4.7
+2.4.7 Fri Mar 12 13:28:32 UTC 2010
+
+* make use of META.yml as a complement for M::I
 
 2.4.6 Fri Mar 12 06:52:25 UTC 2010
 
diff --git a/lib/Shipwright/Backend/Git.pm b/lib/Shipwright/Backend/Git.pm
index 7d38f1f..8a8ee70 100644
--- a/lib/Shipwright/Backend/Git.pm
+++ b/lib/Shipwright/Backend/Git.pm
@@ -50,7 +50,9 @@ sub build {
     $self->SUPER::build(%args);
     $self->strip_repository
       if $self->repository =~ m{^git:[a-z]+(?:\+[a-z]+)?://};
-    $self->_sync_local_dir if -e $self->local_dir && !$args{no_sync_local_dir};
+    my $repo_path = $self->repository;
+    $repo_path =~ s!.*?://!!;
+    $self->_sync_local_dir if -e $repo_path && -e $self->local_dir && !$args{no_sync_local_dir};
     return $self;
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list