rename t/smells-of-vcs/.svn to .exists and mkdir a .git instead
Matt S Trout [Fri, 25 Feb 2011 13:07:08 +0000 (13:07 +0000)]
Commiting a file called .git to git would confuse things.

People (debian) who want to be able to import a tree into svn can't deal with
a .svn existing.

Therefore, we use .exists to ensure the directory's present, and then call
mkdir on t/smells-of-vcs/.git so the strictures behaviour still triggers.

Changes
maint/Makefile.PL.include
t/smells-of-vcs/.exists [moved from t/smells-of-vcs/.svn with 100% similarity]
t/strictures.t

diff --git a/Changes b/Changes
index c021770..3f229d7 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+  - switch .svn to .git in smells-of-vcs test and create it ourselves
+    to ease importing of this dist into subversion repositories
 1.002000 - 2011-02-16
   - add multidimensional and bareword::filehandles in author mode
 1.1.1 Dec 05 2010
index fefe9d9..fdde8cd 100644 (file)
@@ -3,5 +3,5 @@ use Distar;
 author 'mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>';
 
 manifest_include(
-  '' => qr{t/smells-of-vcs/.svn},
+  '' => qr{t/smells-of-vcs/.exists},
 );
similarity index 100%
rename from t/smells-of-vcs/.svn
rename to t/smells-of-vcs/.exists
index 65b2893..47cfa20 100644 (file)
@@ -1,3 +1,5 @@
+mkdir('t/smells-of-vcs/.git') or die "Couldn't create fake .git: $!";
+
 use Test::More qw(no_plan);
 
 our (@us, @expect);